Group Abstract Group Abstract

Message Boards Message Boards

0
|
4K Views
|
0 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Finding twin primes by using primoials

I have discovered that twin primes can always be found at or close by primorials.

primorial [n _ ] := Product [ Prime [ I ] , { I  , n } ] 
(* This calculates primorials  *)

Table [primorial [ n ] , { n , 1 , 6} ]  
(*  The  first 6 primorials are 2 , 6 , 30 , 210 , 2310 , 30030  *) 

u [ x _ ] := Select [ Range [ primorial [ x ] , PrimeQ [ # ] && NextPrime [ # ] == 2 + # &  ]    

This was found in a tutorial in Mathematica. It gives the first number of a twin prime at or close to each primorial . These are

{ } , { 5 , 7 } , {29 , 31} , {  197 , 199 } , { 2309 , 2311 } , {  30029 , 30031 }

I want to use Manipulate to plot the twin primes or the log of twin primes. I hope someone can help. Primorials are infinite, so should twin primes. It would also help prove The Goldbach conjecture .

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard