Jump to content

Greatest prime dividing the n-th cubefree number: Difference between revisions

m
→‎resursive alternative: correct max prime factor to test 2,642,246
(→‎resursive alternative: changed to search for count of cubefree numbers)
m (→‎resursive alternative: correct max prime factor to test 2,642,246)
Line 553:
</pre>
===resursive alternative===
Using Apéry's Constant, which is a quite good estimate.<br>Only checking powers of 10.Not willing to test prime factors > 62,98e12642,246-> 0
<syntaxhighlight lang="pascal">
program CubeFree3;
Line 738:
CntDivs := 0;
check(lmt,0,true);
//new apromitaionapproximation
inc(lmt,trunc(Z3*(dezlmt-cnt)));
until cnt = dezLmt;
132

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.