PrimeGrid
Please visit donation page to help the project cover running costs for this month

Advanced search

Message boards : Number crunching : Sieve for palindromic primes?

Author Message
Profile BurProject donor
Volunteer tester
Avatar
Send message
Joined: 25 Feb 20
Posts: 332
ID: 1241833
Credit: 22,611,276
RAC: 0
321 LLR Gold: Earned 500,000 credits (538,216)Cullen LLR Amethyst: Earned 1,000,000 credits (1,169,946)ESP LLR Gold: Earned 500,000 credits (636,842)Generalized Cullen/Woodall LLR Silver: Earned 100,000 credits (212,232)PPS LLR Gold: Earned 500,000 credits (883,715)PSP LLR Gold: Earned 500,000 credits (663,928)SoB LLR Silver: Earned 100,000 credits (217,346)SR5 LLR Gold: Earned 500,000 credits (531,229)SGS LLR Amethyst: Earned 1,000,000 credits (1,042,382)TRP LLR Gold: Earned 500,000 credits (561,429)Woodall LLR Gold: Earned 500,000 credits (781,741)321 Sieve Ruby: Earned 2,000,000 credits (2,107,153)PPS Sieve Amethyst: Earned 1,000,000 credits (1,045,010)AP 26/27 Ruby: Earned 2,000,000 credits (2,470,273)GFN Turquoise: Earned 5,000,000 credits (7,129,018)PSA Silver: Earned 100,000 credits (244,815)
Message 144789 - Posted: 28 Oct 2020 | 18:48:23 UTC

While looking at new entries at T5K, I came across plindromic primes.

I find it interesting how these numbers are constructed, e.g. 10^(2n+1) - 10^n - 1 results in a number consisting of n 9s followed by a 1 followed by n 9s.

Some more examples can be found here.

Is there sieving software for these kind of numbers? The T5K entries all show openpfgw as software, no sieving software mentioned.
____________
Primes: 1281979 & 12+8+1979 & 1+2+8+1+9+7+9 & 1^2+2^2+8^2+1^2+9^2+7^2+9^2 & 12*8+19*79 & 12^8-1979 & 1281979 + 4 (cousin prime)

Profile GellyProject donor
Volunteer tester
Avatar
Send message
Joined: 13 Nov 16
Posts: 40
ID: 468732
Credit: 522,960,451
RAC: 0
Discovered 1 mega primeFound 1 prime in the 2018 Tour de PrimesFound 2 primes in the 2020 Tour de Primes321 LLR Bronze: Earned 10,000 credits (38,954)ESP LLR Gold: Earned 500,000 credits (942,185)PPS LLR Double Bronze: Earned 100,000,000 credits (132,754,154)PSP LLR Silver: Earned 100,000 credits (489,641)SoB LLR Jade: Earned 10,000,000 credits (12,960,428)SR5 LLR Jade: Earned 10,000,000 credits (10,694,695)SGS LLR Gold: Earned 500,000 credits (563,819)TRP LLR Jade: Earned 10,000,000 credits (12,592,743)321 Sieve Silver: Earned 100,000 credits (395,205)PPS Sieve Double Silver: Earned 200,000,000 credits (229,811,183)TRP Sieve (suspended) Gold: Earned 500,000 credits (669,191)AP 26/27 Jade: Earned 10,000,000 credits (15,039,960)GFN Emerald: Earned 50,000,000 credits (52,138,286)
Message 144796 - Posted: 28 Oct 2020 | 20:56:02 UTC - in response to Message 144789.

Doing a lot of hunting on MersenneForums, Batalov indicated that the sieve he wrote was "quick n' dirty in Pari", PARI/GP being a mathematical programming/scripting language.

The reason that they are a little bit more convoluted (10^(2n)+999*10^(n-1)+1) is because if the form is too simple, it's liable to be divisible by numbers for a vast majority of exponents - see https://oeis.org/A187868 for a similar example.

I'm not certain on the precise particulars of how you'd quickndirty sieve in Pari. It looks to be a form that's a little more complicated than just figuring out what n lead to being non-prime for different p, like what you can do for k*b^n +- 1 with BSGS.[/url]

Profile BurProject donor
Volunteer tester
Avatar
Send message
Joined: 25 Feb 20
Posts: 332
ID: 1241833
Credit: 22,611,276
RAC: 0
321 LLR Gold: Earned 500,000 credits (538,216)Cullen LLR Amethyst: Earned 1,000,000 credits (1,169,946)ESP LLR Gold: Earned 500,000 credits (636,842)Generalized Cullen/Woodall LLR Silver: Earned 100,000 credits (212,232)PPS LLR Gold: Earned 500,000 credits (883,715)PSP LLR Gold: Earned 500,000 credits (663,928)SoB LLR Silver: Earned 100,000 credits (217,346)SR5 LLR Gold: Earned 500,000 credits (531,229)SGS LLR Amethyst: Earned 1,000,000 credits (1,042,382)TRP LLR Gold: Earned 500,000 credits (561,429)Woodall LLR Gold: Earned 500,000 credits (781,741)321 Sieve Ruby: Earned 2,000,000 credits (2,107,153)PPS Sieve Amethyst: Earned 1,000,000 credits (1,045,010)AP 26/27 Ruby: Earned 2,000,000 credits (2,470,273)GFN Turquoise: Earned 5,000,000 credits (7,129,018)PSA Silver: Earned 100,000 credits (244,815)
Message 144821 - Posted: 29 Oct 2020 | 18:50:23 UTC
Last modified: 29 Oct 2020 | 18:51:06 UTC

Ok, thanks. I think I read something about GP/PARI in relation to plindromic primes, maybe in Prime pages comments on an entry?

I know enough to check some small numbers for primality using isprime(), but that's it. Unfortunately, what he calls quick'n'dirty for me probably is advanced math... :D

Maybe it's for the better, so I can keep focus on PG. And I already have a Proth prime side project (k in the 10^6 magnitude, so far away from anybody).
____________
Primes: 1281979 & 12+8+1979 & 1+2+8+1+9+7+9 & 1^2+2^2+8^2+1^2+9^2+7^2+9^2 & 12*8+19*79 & 12^8-1979 & 1281979 + 4 (cousin prime)

Post to thread

Message boards : Number crunching : Sieve for palindromic primes?

[Return to PrimeGrid main page]
DNS Powered by DNSEXIT.COM
Copyright © 2005 - 2023 Rytis Slatkevičius (contact) and PrimeGrid community. Server load 0.08, 0.02, 0.01
Generated 3 Jun 2023 | 12:10:25 UTC