RosettaCodeData/Task/Perfect-numbers/Groovy/perfect-numbers-2.groovy

2 lines
57 B
Groovy

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