(MAGMAMagma) [p: p in PrimesUpTo(4000) | p mod 42 eq 23 ]; // Vincenzo Librandi, Aug 24 2012
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”).
(MAGMAMagma) [p: p in PrimesUpTo(4000) | p mod 42 eq 23 ]; // Vincenzo Librandi, Aug 24 2012
editing
approved
a(n) ~ 12n log n. - Charles R Greathouse IV, Jul 02 2016
(PARI) is(n)=isprime(n) && n%42==23 \\ Charles R Greathouse IV, Jul 02 2016
approved
editing
editing
approved
Select[Range[23, 4000, 42], PrimeQ] (* Harvey P. Dale, Dec 18 2013 *)
approved
editing
proposed
approved
editing
proposed
Vincenzo Librandi, <a href="/A142244/b142244.txt">Table of n, a(n) for n = 1..1000</a>
Select[Prime[Range[1500]], MemberQ[{23}, Mod[#, 42]]&] (* Vincenzo Librandi, Aug 24 2012 *)
(MAGMA) [p: p in PrimesUpTo(4000) | p mod 42 eq 23 ]; // Vincenzo Librandi, Aug 24 2012
Cf. A000040.
nonn,easy
approved
editing
_N. J. A. Sloane (njas(AT)research.att.com), _, Jul 11 2008
nonn,new
nonn
N. J. A. Sloane (njas, (AT)research.att.com), Jul 11 2008