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”).
%I #17 Sep 27 2024 09:30:37
%S 31,199,367,1039,1543,1879,2383,2551,2719,2887,3391,3559,3727,4231,
%T 4567,4903,5407,5743,6079,6247,7591,7759,7927,8263,8431,8599,9103,
%U 9439,10111,11119,11287,11959,12799,12967,13807,14143,14479,14983
%N Primes that are simultaneously of the forms 24i+7 and 7j+24.
%C Equivalently, primes of the form 168k+31. - _Brendan McKay_, Apr 24 2008
%t Select[168 Range[0, 150] + 31, PrimeQ] (* _Vincenzo Librandi_, Jul 22 2015 *)
%o (Magma) [a: n in [0..1000]|IsPrime(a) where a is 168*n+31]; // _Vincenzo Librandi_, Dec 13 2010
%Y Cf. A137658, A137659.
%K nonn
%O 1,1
%A _Zak Seidov_, Apr 24 2008