login
Primes p such that p + 22 is also prime.
6

%I #6 Sep 08 2022 08:46:08

%S 7,19,31,37,61,67,79,109,127,151,157,211,229,241,271,331,337,367,379,

%T 397,409,421,439,457,487,499,541,547,571,577,619,631,661,739,751,787,

%U 859,907,919,991,997,1009,1039,1069,1087,1129,1171,1201,1237,1279,1297

%N Primes p such that p + 22 is also prime.

%H Vincenzo Librandi, <a href="/A242476/b242476.txt">Table of n, a(n) for n = 1..1000</a>

%t Select[Prime[Range[900]], PrimeQ[# + 22] &]

%o (Magma) [p: p in PrimesUpTo(1500)| IsPrime(p+22)];

%Y Cf. A033560, A079021, A153419.

%K nonn,easy

%O 1,1

%A _Vincenzo Librandi_, May 21 2014