Abundant, deficient and perfect number classifications: Difference between revisions

m (→‎{{header|Picat}}: Added out tag.)
Line 2,134:
(abundant: a, deficient: d, perfect: p)
}
 
func divisionIterator.Where(boundfn) {
funcfor Iterator.Where(fn)x in this {
forif fn(x in this) {
ifyield fn(x) {
yield x
}
}
}
}
func Iterator.Sum() {
 
var sum = 0
func Iterator.Sum() {
for x in this {
var sum += x0
for x in this }{
sum += x
}
sum
}
func division(bound) {
var (a, d, p) = (0, 0, 0)
for i in 1..20000 {
Anonymous user