login
Primes that are simultaneously of the forms 24i+7 and 7j+24.
3

%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