RosettaCodeData/Task/Tau-function/11l/tau-function.11l

15 lines
203 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
F tau(n)
V ans = 0
V i = 1
V j = 1
L i * i <= n
I 0 == n % i
ans++
j = n I/ i
I j != i
ans++
i++
R ans
print((1..100).map(n -> tau(n)))