A057706 Smaller of twin primes whose average is a primorial number.
5, 29, 2309
Offset: 1
Examples
(5+7)/2 = 6 = 2*3, (29+31)/2 = 30 = 2*3*5, (2309+2311)/2 = 2310 = 2*3*5*7*11.
Links
- Chris K. Caldwell, Primorial prime.
- Rudolf Ondrejka, The Top Ten: a Catalogue of Primal Configurations, 2001, tables 20A, 20B.
- Eric Weisstein's World of Mathematics, Primorial Prime.
- Index entries for sequences related to primorial numbers.
Crossrefs
Programs
-
Mathematica
Select[FoldList[Times, Prime@ Range@ 40], AllTrue[# + {-1, 1}, PrimeQ] &] - 1 (* Michael De Vlieger, Jul 15 2017 *)
-
Python
from sympy import isprime, prime, primerange def auptoprimorial(limit): phash, alst = 1, [] for p in primerange(1, prime(limit)+1): phash *= p if isprime(phash-1) and isprime(phash+1): alst.append(phash-1) return alst print(auptoprimorial(5)) # Michael S. Branicky, May 29 2021
Extensions
Offset corrected by Arkadiusz Wesolowski, May 08 2012
Comments