RosettaCodeData/Task/Tau-function/EasyLang/tau-function.easy
2026-04-30 12:34:36 -04:00

17 lines
256 B
Text

func divcnt n .
tot = 1
p = 2
while p <= sqrt n
cnt = 1
while n mod p = 0
cnt += 1
n /= p
.
tot *= cnt
p += 1
.
if n > 1 : tot *= 2
return tot
.
for i to 100 : write divcnt i & " "
print ""