login
Primes p such that p + 6 and 6*p + 1 are primes.
1

%I #13 Sep 08 2022 08:45:17

%S 5,7,11,13,17,23,37,47,61,73,83,101,103,107,131,151,173,233,257,263,

%T 271,277,311,331,347,367,373,443,461,503,557,593,601,607,641,653,727,

%U 751,853,941,947,971,1013,1033,1063,1091,1103,1117,1283,1321,1361

%N Primes p such that p + 6 and 6*p + 1 are primes.

%H Michael De Vlieger, <a href="/A106059/b106059.txt">Table of n, a(n) for n = 1..10000</a>

%t Select[Prime[Range[220]], PrimeQ[6#+1]&&PrimeQ[1#+6]&]

%o (Magma) [p: p in PrimesUpTo(5000)|IsPrime(p+6) and IsPrime(6*p+1)]; // _Vincenzo Librandi_, Jan 30 2011

%Y Cf. A007693, A023201.

%K nonn

%O 1,1

%A _Zak Seidov_, May 07 2005