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

A127578
Primes congruent to 31 mod 32.
19
31, 127, 191, 223, 383, 479, 607, 863, 991, 1087, 1151, 1279, 1439, 1471, 1567, 1663, 1759, 1823, 1951, 2111, 2143, 2207, 2239, 2399, 2591, 2687, 2719, 2879, 3167, 3359, 3391, 3583, 3967, 4127, 4159, 4447, 4639, 4703, 4799, 4831, 5023, 5087, 5119, 5279
OFFSET
1,1
LINKS
MATHEMATICA
lst={}; Do[p=Prime[n]; If[Mod[p, 32]==31, AppendTo[lst, p]], {n, 7!}]; lst (* Vladimir Joseph Stephan Orlovsky, Feb 26 2009 *)
Select[Prime[Range[6000]], Mod[#, 32]==31&] (* Vincenzo Librandi, Aug 14 2012 *)
Select[Range[31, 5300, 32], PrimeQ] (* Harvey P. Dale, Oct 03 2012 *)
PROG
(Magma) [p: p in PrimesUpTo(6000) | p mod 32 eq 31 ]; // Vincenzo Librandi, Aug 14 2012
(PARI) is(n)=isprime(n) && n%32==31 \\ Charles R Greathouse IV, Jul 01 2016
KEYWORD
nonn,easy
AUTHOR
Artur Jasinski, Jan 19 2007
EXTENSIONS
Corrected by N. J. A. Sloane, Jul 11 2008
Edited by N. J. A. Sloane at the suggestion of R. J. Mathar, Jul 20 2008
STATUS
approved