mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   enzocreti (https://www.mersenneforum.org/forumdisplay.php?f=156)
-   -   a 27 digit twin prime pair (https://www.mersenneforum.org/showthread.php?t=24273)

enzocreti 2019-04-08 12:54

a 27 digit twin prime pair
 
I found this pair of 27 digit twin primes:


1- 149907114776274341482621993
2- 149907114776274341482621991




I would know if it is possible with Pari or Pfgw to find the next and the previous pair of twin primes?

LaurV 2019-04-08 13:47

Yes, it is possible, and it takes less than a second to run.


[CODE]gp > n=149907114776274341482621993; while((m=nextprime(n+1))-n>2, n=m); n
%1 = 149907114776274341482622207[/CODE]


The other direction exercise for you.

enzocreti 2019-04-08 15:25

149907114776274341482621993
 
149907114776274341482621993 is the concatenation in base ten of the prime factors of 25!-1


All times are UTC. The time now is 17:00.

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