OFFSET
1,1
COMMENTS
5 is not quadratic residue of primes of this form. - Vincenzo Librandi, Jun 25 2014
Also primes of the form 5n+2 with positive n. - Danny Rorabaugh, Feb 20 2016
LINKS
Michael B. Porter, Table of n, a(n) for n = 1..100000
A. Granville and G. Martin, Prime number races, arXiv:math/0408319 [math.NT], 2004.
FORMULA
a(n) = 10*A102342(n) + 7.
a(n) ~ 4n log n. - Charles R Greathouse IV, Jul 01 2013
MATHEMATICA
Select[Prime@Range[210], Mod[ #, 10] == 7 &] (* Ray Chandler, Nov 07 2006 *)
PROG
(Magma) [n: n in [7..1240 by 10] | IsPrime(n)]; // Bruno Berselli, Apr 06 2011
(PARI) is(n)=n%10==7 && isprime(n) \\ Charles R Greathouse IV, Jul 01 2013
(PARI) lista(nn) = forprime(p=7, nn, if(p%10==7, print1(p, ", "))) \\ Iain Fox, Dec 30 2017
(Sage) [10*n+7 for n in range(124) if is_prime(10*n+7)] # Danny Rorabaugh, Feb 20 2016
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
EXTENSIONS
Extended by Ray Chandler, Nov 07 2006
STATUS
approved