I am interested in twin primes and have not been able to find a simple "sieve" type function to calculate them.(adsbygoogle = window.adsbygoogle || []).push({});

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 Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Twin Prime Sieve

**Physics Forums | Science Articles, Homework Help, Discussion**