Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
8
Task/Tau-function/Wren/tau-function.wren
Normal file
8
Task/Tau-function/Wren/tau-function.wren
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
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()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue