OFFSET
1,1
COMMENTS
Being a subset of A141158, this is also a subset of the primes of form x^2 - 5y^2. - Tito Piezas III, Dec 28 2008
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = A030430(n-1) for all n >= 2. - M. F. Hasler, Jan 15 2018
EXAMPLE
a(1) = 5 is the first primes that is congruent to 0 or 1, modulo 5.
a(2) = 11 is the first prime congruent to 1 modulo 5, and therefore (since there is no other prime congruent to 0 mod 5) the second term of this sequence.
a(10^k) = (181, 2791, 38201, 479771, 5803381, 67881871, 776580131, ...) for k = 1, 2, 3, ...
MATHEMATICA
Select[Prime@Range[210], MemberQ[{0, 1}, Mod[ #, 5]] &] (* Ray Chandler, Dec 06 2006 *)
PROG
(Magma) [ p: p in PrimesUpTo(1300) | p mod 5 in {0, 1} ]; // Vincenzo Librandi, Aug 13 2012
(PARI) A045453_vec(Nmax)=select( p->p%5<2, primes([1, Nmax])) \\ or:
A045453(n)=forprime(p=1, , p%5>1||n--||return(p)) \\ M. F. Hasler, Jan 15 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
Extended by Ray Chandler, Nov 28 2003
Checked by Neven Juric (neven.juric(AT)apis-it.hr), Feb 04 2008
Edited and a(1000) double checked by M. F. Hasler, Jan 15 2018
STATUS
approved