Greatest prime dividing the n-th cubefree number: Difference between revisions
Content added Content deleted
(Added Dart) |
m (→{{header|Phix}}: logic eludes me comment) |
||
Line 188: | Line 188: | ||
-- Note this routine had a major hiccup at 27000 = 2^3*3^3*5^3 and another was predicted at 9261000 = 27000*7^3. |
-- Note this routine had a major hiccup at 27000 = 2^3*3^3*5^3 and another was predicted at 9261000 = 27000*7^3. |
||
-- The "insufficient kludge" noted below makes it match Wren over than limit, but quite possibly only by chance. |
-- The "insufficient kludge" noted below makes it match Wren over than limit, but quite possibly only by chance. |
||
-- (it has o/c passed every test I can think of, but the logic of combinations/permutes behind it all eludes me) |
|||
function cubes_before(atom n) |
function cubes_before(atom n) |
||
-- nb: if n is /not/ cube-free it /is/ included in the result. |
-- nb: if n is /not/ cube-free it /is/ included in the result. |