login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A060200
Number of Sophie Germain primes <= prime(2^n).
0
2, 3, 4, 8, 12, 20, 32, 54, 94, 170, 297, 549, 1017, 1895, 3505, 6577, 12388, 23565, 44891, 85922, 164299, 314173, 602624, 1158231, 2232286
OFFSET
1,1
COMMENTS
Sophie Germain primes are primes p such that 2p+1 is also prime.
EXAMPLE
The first four primes are 2, 3, 5 and 7. Three of these are Sophie Germain primes (since 2*2 + 1 = 5, 2*3 + 1 = 7 and 2*5 + 1 = 11 are prime, but 2*7 + = 15). Therefore the second value in the sequence is 3.
MATHEMATICA
<< NumberTheory`NumberTheoryFunctions` cnt = 0; currentPrime = 1; For[ i = 1, i == i, i ++, currentPrime = NextPrime[ currentPrime ]; If[ PrimeQ[ 2*currentPrime + 1 ], cnt++ ]; If[ IntegerQ[ Log[ 2, i ] ], Print[ cnt ] ]; ]
CROSSREFS
Cf. A049040.
Sequence in context: A222125 A222126 A004045 * A057608 A060984 A226947
KEYWORD
nonn
AUTHOR
Alexander D. Healy, Mar 19 2001
STATUS
approved