RosettaCodeData/Task/Legendre-prime-counting-function/J/legendre-prime-counting-function-1.j
2023-07-01 13:44:08 -04:00

12 lines
189 B
Text

require'format/printf'
{{echo '10^%d: %d' sprintf y;p:inv 10^y}}"0 i.10
10^0: 0
10^1: 4
10^2: 25
10^3: 168
10^4: 1229
10^5: 9592
10^6: 78498
10^7: 664579
10^8: 5761455
10^9: 50847534