A176600 Numbers n such that concatenations n//13 and n//31 are consecutive primes.
19, 190, 250, 346, 378, 400, 402, 456, 516, 553, 567, 586, 664, 759, 762, 853, 931, 972, 1140, 1156, 1161, 1242, 1266, 1284, 1314, 1317, 1338, 1398, 1440, 1645, 1744, 1785, 1840, 1875, 1930, 1944, 2227, 2248, 2271, 2287, 2316, 2397, 2401, 2467, 2568, 2602
Offset: 1
Examples
19//13 = 1913 = prime(293), 19//31 = 1931 = prime(294), 19 is 1st term 190//13 = 19013 = prime(2161), 190//31 = 19031 = prime(2162), 190 is 2nd term
Programs
-
Mathematica
Select[Range[3000],PrimeQ[# 100+13]&&NextPrime[# 100+13]==# 100+31&] (* Harvey P. Dale, Jun 23 2022 *)
-
PARI
A176600(n,print_all=0)={ for(k=1,1e9,isprime(100*k+13) || next;nextprime(100*k+17)==100*k+31||next;print_all & print1(k",");n-- || return(k))} \\ M. F. Hasler, Dec 04 2010
Comments