RosettaCodeData/Task/Perfect-numbers/Groovy/perfect-numbers-2.groovy
2023-07-01 13:44:08 -04:00

1 line
57 B
Groovy

(0..10000).findAll { isPerfect(it) }.each { println it }