Basic Examples (3)
Basic Examples
(3)
Here are the first 10 pairs of sexy primes:
In[326]:=
Out[326]=
{{5,11},{7,13},{11,17},{13,19},{17,23},{23,29},{31,37},{37,43},{41,47},{47,53}}
Indeed, the differences are 6:
In[327]:=
Differences/@%
Out[327]=
{{6},{6},{6},{6},{6},{6},{6},{6},{6},{6}}
For reference, here are the first 20 primes:
In[379]:=
Prime[Range[15]]
Out[379]=
{2,3,5,7,11,13,17,19,23,29,31,37,41,43,47}