RosettaCodeData/Task/Totient-function/Zkl/totient-function-2.zkl

5 lines
119 B
Plaintext

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