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

4 lines
127 B
Text

for n in (1..25) {
var totient = 𝜑(n)
printf("𝜑(%2s) = %3s%s\n", n, totient, totient==(n-1) ? ' - prime' : '')
}