Skip to main content
added 49 characters in body
Source Link
Jordan
  • 11.9k
  • 1
  • 36
  • 56

Ruby, 5555 51 bytes

Prints the sequence infinitely.-4 bytes thanks to G B

(1..).mapstep{|a|a.digits.sum==(1..a).count{a%_1<1}&&&&p(p a)} 

Attempt This Online!Attempt This Online!

Ruby, 55 bytes

Prints the sequence infinitely.

(1..).map{|a|a.digits.sum==(1..a).count{a%_1<1}&&(p a)} 

Attempt This Online!

Ruby, 55 51 bytes

-4 bytes thanks to G B

1.step{|a|a.digits.sum==(1..a).count{a%_1<1}&&p(a)} 

Attempt This Online!

added 35 characters in body
Source Link
Jordan
  • 11.9k
  • 1
  • 36
  • 56

Ruby, 55 bytes

Prints the sequence infinitely.

(1..).map{|a|a.digits.sum==(1..a).count{a%_1<1}&&(p a)} 

Attempt This Online!

Ruby, 55 bytes

(1..).map{|a|a.digits.sum==(1..a).count{a%_1<1}&&(p a)} 

Attempt This Online!

Ruby, 55 bytes

Prints the sequence infinitely.

(1..).map{|a|a.digits.sum==(1..a).count{a%_1<1}&&(p a)} 

Attempt This Online!

deleted 38 characters in body
Source Link
Jordan
  • 11.9k
  • 1
  • 36
  • 56

Ruby, 5655 bytes

Prints the sequence infinitely.

(1..).map{|a|a.digits.sum==(1..a).count{a%_1==0a%_1<1}&&(p a)} 

Attempt This Online!Attempt This Online!

Ruby, 56 bytes

Prints the sequence infinitely.

(1..).map{|a|a.digits.sum==(1..a).count{a%_1==0}&&(p a)} 

Attempt This Online!

Ruby, 55 bytes

(1..).map{|a|a.digits.sum==(1..a).count{a%_1<1}&&(p a)} 

Attempt This Online!

Source Link
Jordan
  • 11.9k
  • 1
  • 36
  • 56
Loading