Talk:Square form factorization: Difference between revisions

lang -> syntaxhighlight
(Effect of using the subscript of the multipliers array instead of the array element)
(lang -> syntaxhighlight)
 
Line 179:
 
To prove things were working as they should, I wrote a little ditty
<langsyntaxhighlight lang="Phix">integer prev = 3
sequence res = {}, r
for n=3 to 100_000 do
Line 197:
prev = p
end for
puts(1,join_by(res,3,10))</langsyntaxhighlight>
and got this, the only non-prime odd numbers that fail below 1,000,000 are indeed cubes of primes, just as advertised:
<pre>
3,038

edits