A120099 Numbers n such that the closest primes surrounding 10^n are the same distance modulo 100.
17, 45, 87, 101, 112, 230, 270, 341, 468, 472, 473, 479, 517, 554, 555, 568, 650, 657, 663, 696, 718, 727, 810, 830, 836, 900, 917, 952, 984, 988, 1020, 1021, 1022, 1059, 1140, 1142, 1167, 1200, 1295, 1326, 1400, 1401, 1405, 1406, 1418, 1449, 1499, 1503, 1526
Offset: 1
Programs
-
Mathematica
NextPrim[n_] := Block[{k = n + 1}, While[ !PrimeQ@k, k++ ]; k]; PrevPrim[n_] := Block[{k = n - 1}, While[ ! PrimeQ@k, k-- ]; k]; Do[ If[ Mod[ NextPrim[10^n], 100] == Mod[10^n - PrevPrim[10^n], 100], Print[{n, a, b}]], {n, 1320}] Select[Range[1530],Mod[NextPrime[10^#]-10^#,100]==Mod[10^# -NextPrime[ 10^#,-1],100]&] (* Harvey P. Dale, Sep 24 2021 *)
Extensions
More terms from Robert G. Wilson v, Jun 09 2006
Corrected (term 517 added) by Harvey P. Dale, Sep 25 2021
Comments