mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   No Prime Left Behind (https://www.mersenneforum.org/forumdisplay.php?f=82)
-   -   Continuity of Primes (https://www.mersenneforum.org/showthread.php?t=15857)

wblipp 2011-08-03 16:13

[QUOTE=CRGreathouse;268184]If you reduce mod the Mersenne number at each step, you can prove 2^19 - 1 prime in Excel.[/QUOTE]

If you get the [URL="http://www.immortaltheory.com/NumberTheory/ZMath.htm"]ZMath Addin[/URL], you can confirm 2^607-1 is prime in Excel. You can test up to 2^829-1.

CRGreathouse 2011-08-03 18:21

[QUOTE=LiquidNitrogen;268186]What would this involve doing it the way you mentioned?[/QUOTE]

Every time you would square and subtract two, reduce mod p afterward. That way you're never squaring a number larger than p.

science_man_88 2011-08-03 21:46

[QUOTE=CRGreathouse;268217]Every time you would square and subtract two, reduce mod p afterward. That way you're never squaring a number larger than p.[/QUOTE]

I thought it was mod 2^p-1 okay.

LiquidNitrogen 2011-08-04 00:36

1 Attachment(s)
[QUOTE=CRGreathouse;268217]Every time you would square and subtract two, reduce mod p afterward. That way you're never squaring a number larger than p.[/QUOTE]

Ok, so I think I have it now. Is this spreadsheet correct then?

[ATTACH]6875[/ATTACH]

science_man_88 2011-08-04 00:43

[QUOTE=LiquidNitrogen;268250]Ok, so I think I have it now. Is this spreadsheet correct then?

[ATTACH]6875[/ATTACH][/QUOTE]


as far as I can tell yes. haven't checked the correct values on the way.

[url]http://oeis.org/A095847[/url]

LiquidNitrogen 2011-08-04 00:49

[QUOTE=wblipp;268193]If you get the [URL="http://www.immortaltheory.com/NumberTheory/ZMath.htm"]ZMath Addin[/URL], you can confirm 2^607-1 is prime in Excel. You can test up to 2^829-1.[/QUOTE]

Now that is cool, thanks! Do you have that factor.exe program that is being referred to in the documentation? I went to the website it was linked to, but that site is down now.

Why can't authors just "bundle", all these external links are a drag!

science_man_88 2011-08-04 01:08

[QUOTE=LiquidNitrogen;268253]Now that is cool, thanks! Do you have that factor.exe program that is being referred to in the documentation? I went to the website it was linked to, but that site is down now.

Why can't authors just "bundle", all these external links are a drag![/QUOTE]

inurl:"factor.exe" might help in google.

LaurV 2011-08-04 02:58

[QUOTE=LiquidNitrogen;268164]
And now I actually know how to do the Lucas-Lehmer test, although those s(k) numbers grow too big for Excel after s(4). At least Excel can prove 2^5 - 1 is prime using Lucas-Lehmer :smile:[/QUOTE]

in fact, using 32bit excel you can prove m=2^p-1 is prime for p=31 (and all p smaller, of course), using some tricks, like taking the MOD function each time, after each step (yes, there is a MOD function, you don't need to do division as said in another reply above) and using the fact that x^2=(m-x)^2 mod m (that is, testing after each step and taking the smallest one for squaring), and if you use VBA in excel and declare them as "variants", then you can go to 2^43-1 (that is proved composite). For 64bit excel you can go to prove m=2^p-1 is prime for p=61 (and all other primes p smaller then 61, leading to primes or composite m's) by declaring them as Longlong in VBA (this type is missing in Excel32).

This just for fun :D (no computational value).


All times are UTC. The time now is 10:02.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.