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”).

A142195
Primes congruent to 31 mod 40.
1
31, 71, 151, 191, 271, 311, 431, 631, 751, 911, 991, 1031, 1151, 1231, 1471, 1511, 1831, 1871, 1951, 2111, 2311, 2351, 2551, 2591, 2671, 2711, 2791, 3191, 3271, 3391, 3511, 3631, 3671, 3911, 4111, 4231, 4271, 4391, 4591, 4751, 4831, 4871, 4951, 5231, 5351
OFFSET
1,1
LINKS
FORMULA
a(n) ~ 16n log n. - Charles R Greathouse IV, Jul 03 2016
MATHEMATICA
Select[Prime[Range[2000]], MemberQ[{31}, Mod[#, 40]]&] (* Vincenzo Librandi, Aug 22 2012 *)
PROG
(Magma) [p: p in PrimesUpTo(7000) | p mod 40 eq 31 ]; // Vincenzo Librandi, Aug 22 2012
(PARI) is(n)=isprime(n) && n%40==31 \\ Charles R Greathouse IV, Jul 03 2016
CROSSREFS
Cf. A000040.
Sequence in context: A127191 A003542 A055781 * A237992 A356457 A139975
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Jul 11 2008
STATUS
approved