Basic Examples (3)
Basic Examples
(3)
Here are the first 10 pairs of twin primes:
In[321]:=
Out[321]=
{{3,5},{5,7},{11,13},{17,19},{29,31},{41,43},{59,61},{71,73},{101,103},{107,109}}
Indeed, the differences are 2:
In[322]:=
Differences/@%
Out[322]=
{{2},{2},{2},{2},{2},{2},{2},{2},{2},{2}}
For reference, here are the first 30 primes:
In[309]:=
Prime[Range[30]]
Out[309]=
{2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113}
Neat Examples (3)
Neat Examples
(3)