2024-03-06 22:25:12 -08:00
|
|
|
import "./math" for Int
|
|
|
|
|
import "./fmt" for Fmt
|
2023-07-01 11:58:00 -04:00
|
|
|
|
|
|
|
|
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()
|
|
|
|
|
}
|