![]() |
|
|
#672 |
|
May 2010
Prime hunting commission.
24·3·5·7 Posts |
Bumped into twin primes: 67787178174290220625980001 and 67787178174290220625979999.
And: 67787178174290220625980000^1 + 1 is prime: 67787178174290220625980000^2 + 1 is also prime! That leads to n^(2^n)+1 chains/Fermat chains: Has there been any search on that? I found 11861410^(1, 2, 4, 8, or 16) + 1 are all prime. Last fiddled with by 3.14159 on 2010-08-19 at 15:57 |
|
|
|
|
|
#673 |
|
Aug 2006
3×1,993 Posts |
|
|
|
|
|
|
#674 | |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
Quote:
|
|
|
|
|
|
|
#675 | |
|
May 2010
Prime hunting commission.
69016 Posts |
Quote:
To: em2(x,n,a)=forstep(b=lift(Mod(-1,x)/n),10^a,x,v[(b)])? Last fiddled with by 3.14159 on 2010-08-19 at 16:03 |
|
|
|
|
|
|
#676 | |
|
May 2010
Prime hunting commission.
24×3×5×7 Posts |
Quote:
2 = The oddest prime. |
|
|
|
|
|
|
#677 |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
Code:
for(n=1,100,print(isprime(n^2+1)"," isprime(n^4+1)",",isprime(n^8+1)","isprime(n^16+1)"," isprime(n^32+1)"," isprime(n^64+1))) |
|
|
|
|
|
#678 |
|
May 2010
Prime hunting commission.
24·3·5·7 Posts |
I found this: 703 * p(125)#^66 + 1. (≈ 19100 digits)
Last fiddled with by 3.14159 on 2010-08-19 at 16:33 |
|
|
|
|
|
#679 | |
|
Aug 2006
3·1,993 Posts |
Quote:
* If v is a vector with size at least as large as the final value of b (around 10^a), then do nothing. * If lift(Mod(-1,x)/n) is greater than 10^a, then do nothing. * Otherwise, if v is a vector, throw an "index out of bounds" error. * If v is not a vector, and lift(Mod(-1,x)/n) is <= 10^a, then throw a "_[_]: not a vector" error. |
|
|
|
|
|
|
#680 | |
|
May 2010
Prime hunting commission.
24×3×5×7 Posts |
Quote:
Last fiddled with by 3.14159 on 2010-08-19 at 17:39 |
|
|
|
|
|
|
#681 |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
CRG I got my code to work to find primes and fill a vector of 0's with them I'm thinking of how to make a function VecApp(v,x,f) that takes one vector(v) into another vector(f) with 1 extra element which is appended with value x maybe that will make it easier on me. I think this would need to say something like f[i] = v[i] f[i]+1 = x but I'm without reading them all I have no idea how to get i not to go over the amount of indexes of v.
|
|
|
|
|
|
#682 |
|
Aug 2006
3·1,993 Posts |
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Why do I sometimes see all the <> formatting commands when I quote or edit? | cheesehead | Forum Feedback | 3 | 2013-05-25 12:56 |
| Passing commands to PARI on Windows | James Heinrich | Software | 2 | 2012-05-13 19:19 |
| Ubiquity commands | Mini-Geek | Aliquot Sequences | 1 | 2009-09-22 19:33 |
| 64-bit Pari? | CRGreathouse | Software | 2 | 2009-03-13 04:22 |
| Are these commands correct? | jasong | Linux | 2 | 2007-10-18 23:40 |