RosettaCodeData/Task/Totient-function/Zkl/totient-function-2.zkl
2023-07-01 13:44:08 -04:00

4 lines
119 B
Text

foreach n in ([1..25]){
println("\u03c6(%2d) ==%3d %s"
.fmt(n,totient(n),isPrime(n) and "is prime" or ""));
}