RosettaCodeData/Task/Tau-function/Wren/tau-function.wren
2023-07-01 13:44:08 -04:00

8 lines
225 B
Text

import "/math" for Int
import "/fmt" for Fmt
System.print("The tau functions for the first 100 positive integers are:")
for (i in 1..100) {
Fmt.write("$2d ", Int.divisors(i).count)
if (i % 20 == 0) System.print()
}