Anti-primes: Difference between revisions

m
(added langur language example)
Line 2,265:
<syntaxhighlight lang="langur">val .countDivisors = f(.n) {
if .n < 2: return 1
varfor[=2] .counti = 2; .i <= .n\2; .i += 1 {
for .i = 2; .i <=if .n/2; div .i : _for += 1 {
if .n div .i : .count += 1
}
return .count
}
 
Line 2,288 ⟶ 2,286:
<pre>1 2 4 6 12 24 36 48 60 120 180 240 360 720 840 1260 1680 2520 5040 7560
</pre>
 
 
=={{header|Lua}}==
890

edits