Twin Prime Sieve: Calculate All Twins Less Than N - Todd's Version

  • Context: Undergrad 
  • Thread starter Thread starter toddkuen
  • Start date Start date
  • Tags Tags
    Prime
Click For Summary
SUMMARY

Todd has developed a Twin Prime Sieve that calculates all twin primes less than a specified number N, which is detailed in his PDF document available at http://www.just-got-lucky.com/math/TwinPrimeSieve_08102010_v01.pdf. He also created a Mathematica version of the sieve, allowing users to experiment with the calculations. The discussion includes inquiries about the efficiency of the sieve, particularly its performance in generating twin primes up to 10^10, and explores the feasibility of a Bernstein-Atkin-style twin sieve, although it is deemed unlikely to be practical.

PREREQUISITES
  • Understanding of twin primes and their properties
  • Familiarity with the Sieve of Eratosthenes algorithm
  • Basic knowledge of Mathematica programming
  • Concept of prime sieving techniques
NEXT STEPS
  • Research the Sieve of Eratosthenes for prime number generation
  • Explore Mathematica functions for mathematical computations
  • Investigate Bernstein-Atkin sieve techniques for prime number generation
  • Study advanced algorithms for optimizing twin prime calculations
USEFUL FOR

Mathematicians, computer scientists, and enthusiasts interested in prime number theory, particularly those focusing on twin primes and algorithm optimization.

toddkuen
Messages
15
Reaction score
0
I am interested in twin primes and have not been able to find a simple "sieve" type function to calculate them.

I created my own. You can find it at this URL:

http://www.just-got-lucky.com/math/TwinPrimeSieve_08102010_v01.pdf

It calculates all the twins less than N.

I also wrote a Mathematica version - its listed in the PDF - so you can play with it.

Any links to other twin prime sieves would be helpful.

Thanks
Todd
 
Physics news on Phys.org
How efficient is your sieve? How long does it take to generate the twins up to 10^10, say? (There are 27412679.)

Making a simple Eratosthenes-style sieve for twin primes is straightforward enough, but I wonder if anyone has tried to make a Bernstein-Atkin-style twin sieve. Is such a thing possible?
 
Not very. I am more interested in this concept as opposed to actual use. My interest is in the abstraction of making the twin primes the sieve.

It goes along with the boxed prime idea I posted a while back. I make triples of three odds what is sieved in this case. But you could do it for groups of six as well in which case the 19 and 109 values come out.
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 14 ·
Replies
14
Views
6K
  • · Replies 28 ·
Replies
28
Views
5K
  • · Replies 1 ·
Replies
1
Views
7K
Replies
6
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 9 ·
Replies
9
Views
4K
Replies
7
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K