Proper divisors: Difference between revisions

Content added Content deleted
m (→‎{{header|Phix}}: added syntax colouring the hard way)
Line 1,816: Line 1,816:
<lang dyalect>func properDivs(n) {
<lang dyalect>func properDivs(n) {
if n == 1 {
if n == 1 {
return
yield break
}
}
for x in 1..^n {
for x in 1..<n {
if n % x == 0 {
if n % x == 0 {
yield x
yield x