Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Determine whether a number is a Sophie Germain prime
11 is a Sophie Germain prime, because both 11 and 23=2·11+1 are primes:
In[1]:= |
Out[1]= |
7 is not a Sophie Germain prime, because 15=2·7+1 is not prime:
In[2]:= |
Out[2]= |
Even though 29=2·14+1 is a prime number, 14 is not a Sophie Germain prime because it is not prime itself:
In[3]:= |
Out[3]= |
This work is licensed under a Creative Commons Attribution 4.0 International License