Chowla numbers: Difference between revisions
Content added Content deleted
(→{{header|Julia}}: flagged as incorrect (concerning perfect numbers).) |
|||
Line 109: | Line 109: | ||
println("The count of the primes up to $(format(i, commas=true)) is $(format(countchowlas(i), commas=true))") |
println("The count of the primes up to $(format(i, commas=true)) is $(format(countchowlas(i), commas=true))") |
||
end |
end |
||
println("The count of perfect numbers up to 35,000 is $(countchowlas( |
println("The count of perfect numbers up to 35,000,000 is $(countchowlas(35000000, true, true)).") |
||
end |
end |
||
Line 163: | Line 163: | ||
The number 496 is perfect. |
The number 496 is perfect. |
||
The number 8,128 is perfect. |
The number 8,128 is perfect. |
||
The number 33,550,336 is perfect. |
|||
The count of perfect numbers up to 35,000 is |
The count of perfect numbers up to 35,000,000 is 5. |
||
</pre> |
</pre> |
||