OFFSET
1,1
COMMENTS
a(n) is a multiple of 6*prime(n) for n>2. Conjecture: No term is zero.
LINKS
Hugo Pfoertner, Table of n, a(n) for n = 1..10000
EXAMPLE
a(5) = 198 = 11*18, (197,199) forms a twin prime pair.
MATHEMATICA
For[n = 1, n < 40, n++, a := Prime[n]; k := 2; While[Not[PrimeQ[k*a + 1] && PrimeQ[k*a - 1]], k += 2]; Print[k*a]] (* Stefan Steinerberger, Feb 17 2006 *)
PROG
(PARI) a(n) = { my(k = 2, p = prime(n)); while (! (isprime(k*p-1) && isprime(k*p+1)), k++); k*p; } \\ Michel Marcus, Nov 12 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Dec 07 2003
EXTENSIONS
More terms from David Wasserman, Dec 21 2005
More terms from Stefan Steinerberger, Feb 17 2006
STATUS
approved