Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Get the pairs of primes that differ by 6
ResourceFunction["SexyPrimes"][n] gives the first n pairs of primes that differ by 6. |
Here are the first 10 pairs of sexy primes:
In[1]:= | ![]() |
Out[1]= | ![]() |
Indeed, the differences are 6:
In[2]:= | ![]() |
Out[2]= | ![]() |
For reference, here are the first 20 primes:
In[3]:= | ![]() |
Out[3]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License