mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2019-09-29, 01:31   #1
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3×1,993 Posts
Default Iterating through 15-APs of primes?

I'd like to extend A291525. Is there good software to generate arithmetic progressions of primes? Math::Prime::Util doesn't seem to do it, but surely some of the sieves we have floating around the forum can handle this easily enough.
CRGreathouse is offline   Reply With Quote
Old 2019-09-30, 09:53   #2
mackerel
 
mackerel's Avatar
 
Feb 2016
UK

3×5×29 Posts
Default

Nearest I can think of is the AP project at PrimeGrid. More about the software used can be found the the below links. I believe it searches for primes of no specific type. If that is required, then I'd imagine either the code would need to be changed for the desired prime type, or you could kinda brute-force it and separately filter the output to look for sequences of the desired type.

http://www.primegrid.com/forum_thread.php?id=6359
https://github.com/ibethune/ap26
mackerel is offline   Reply With Quote
Old 2019-09-30, 11:16   #3
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Cambridge (GMT/BST)

2×33×109 Posts
Default

Polysieve might be able to handle APs https://mersenneforum.org/showthread.php?t=16705&page=9
The gap between primes in the progression would have to be known in advance and can then be put in as c(the values for c currently need to fit in a signed long but that restriction is probably liftable.

Checking for Chen-ness of all the terms is a whole different kettle of fish though.
henryzz is online now   Reply With Quote
Old 2019-10-01, 03:51   #4
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3×1,993 Posts
Default

Quote:
Originally Posted by henryzz View Post
Checking for Chen-ness of all the terms is a whole different kettle of fish though.
I'm happy to handle that part myself. (If it's a beautiful simpole C tool like polysieve I might even be able to modify it to do some simple checks on the Chen part during the sieving, but doing all of the Chen checks in postprocessing wouldn't be bad.)

Quote:
Originally Posted by henryzz View Post
Polysieve might be able to handle APs https://mersenneforum.org/showthread.php?t=16705&page=9
The gap between primes in the progression would have to be known in advance and can then be put in as c(the values for c currently need to fit in a signed long but that restriction is probably liftable.
How would this work? I don't quite understand what polysieve does.
CRGreathouse is offline   Reply With Quote
Old 2019-10-01, 05:02   #5
mathwiz
 
Mar 2019

3·61 Posts
Default

I am a bit confused by the definition of this sequence: "a(n) is the largest number in an n-term AP of Chen primes".

But one of the papers cited proves "Theorem 1.6. The Chen prime numbers contain infinitely many arith-
metic progressions of length k for all k".

So should the definition of the OEIS sequence specify "the largest number in the FIRST n-term AP" or something similar?
mathwiz is offline   Reply With Quote
Old 2019-10-01, 05:28   #6
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3·1,993 Posts
Default

Quote:
Originally Posted by mathwiz View Post
So should the definition of the OEIS sequence specify "the largest number in the FIRST n-term AP" or something similar?
I was hoping to revise the definition when I added the first term I found. It should mirror the definition of A005115, being the largest prime in the n-AP of Chen primes such that the largest is minimized.

In order to find such a creature, you pretty much just have to try all the candidates up to that point. Of course you can do a lot with sieving, but you can't skip candidates entirely AFAICT.
CRGreathouse is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mersenne Primes p which are in a set of twin primes is finite? carpetpool Miscellaneous Math 3 2017-08-10 13:47
Distribution of Mersenne primes before and after couples of primes found emily Math 34 2017-07-16 18:44
Conjecture about Mersenne primes and non-primes v2 Mickey1 Miscellaneous Math 1 2013-05-30 12:32
A conjecture about Mersenne primes and non-primes Unregistered Information & Answers 0 2011-01-31 15:41
possible primes (real primes & poss.prime products) troels munkner Miscellaneous Math 4 2006-06-02 08:35

All times are UTC. The time now is 18:36.


Sun Aug 1 18:36:15 UTC 2021 up 9 days, 13:05, 0 users, load averages: 2.00, 2.05, 2.28

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

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.