(MAGMAMagma) [p: p in PrimesUpTo(17000) | p mod 43 eq 10 ]; // Vincenzo Librandi, Aug 24 2012
(MAGMAMagma) [p: p in PrimesUpTo(17000) | p mod 43 eq 10 ]; // Vincenzo Librandi, Aug 24 2012
editing
approved
a(n) ~ 42n log n. - Charles R Greathouse IV, Jul 02 2016
(PARI) is(n)=isprime(n) && n%43==10 \\ Charles R Greathouse IV, Jul 02 2016
approved
editing
proposed
approved
editing
proposed
Select[Prime[Range[2000]], Mod[#, 43]==10&] (* or *) Select[43Range[ 0, 400]+10, PrimeQ] (* Harvey P. Dale, July Jul 02 2011 *)
approved
editing
Select[Prime[Range[2000]], Mod[#, 43]==10&] (* or *) Select[43Range[ 0, 400]+10, PrimeQ] (* From _Harvey P. Dale, _, July 02 2011 *)
proposed
approved
editing
proposed
Vincenzo Librandi, <a href="/A142259/b142259.txt">Table of n, a(n) for n = 1..1000</a>
Select[Prime[Range[5000]], MemberQ[{10}, Mod[#, 43]]&] (* Vincenzo Librandi, Aug 24 2012 *)
(MAGMA) [p: p in PrimesUpTo(17000) | p mod 43 eq 10 ]; // Vincenzo Librandi, Aug 24 2012
Cf. A000040.
nonn,easy
approved
editing