$ 0 0 Japt-R, 11 bytesõ2 f@ìX e§1Try itõ2 f@ìX e§1 :Implicit input of integer Uõ2 :Range [2,U] f :Filter by @ :Passing each X through the following fuctionìX : Convert U to base X digit array e : All§1 : <=1 :Implicit output, joined with newlines