A129215 Numbers m such that 9!*m -+ 1 are twin primes.
3, 11, 22, 38, 52, 69, 125, 140, 154, 167, 169, 185, 198, 200, 205, 239, 299, 308, 335, 368, 376, 390, 405, 421, 482, 509, 574, 597, 610, 663, 684, 700, 701, 720, 763, 792, 795, 798, 840, 843, 855, 898, 907, 921, 954, 957
Offset: 1
Keywords
Links
- Amiram Eldar, Table of n, a(n) for n = 1..10000
Crossrefs
Programs
-
Magma
[m:m in [1..1000]| IsPrime(Factorial(9)*m+1) and IsPrime(Factorial(9)*m-1)]; // Marius A. Burtea, Dec 29 2019
-
Mathematica
s={};Do[m=362880k;If[PrimeQ[m-1]&&PrimeQ[m+1],AppendTo[s,k]],{k,1000}];s With[{c=9!},Select[Range[1000],And@@PrimeQ[c*#+{1,-1}]&]] (* Harvey P. Dale, Aug 27 2013 *)
Formula
9!*a(n) are terms in A014574.
Comments