login
Primes p such that either (or both) p-10 or p+10 are primes.
0

%I #6 Mar 14 2015 17:19:41

%S 3,7,13,17,19,23,29,31,37,41,43,47,53,61,71,73,79,83,89,97,103,107,

%T 113,127,137,139,149,157,163,167,173,181,191,223,229,233,239,241,251,

%U 271,281,283,293,307,317,337,347,349,359,373,379,383,389,409,419,421,431

%N Primes p such that either (or both) p-10 or p+10 are primes.

%e Primes 3 and 13 differ by 10.

%e Primes 61 and 71 differ by 10.

%t Select[ Prime[ Range[83]], PrimeQ[ # - 10] || PrimeQ[ # + 10] &] (* _Robert G. Wilson v_, Jan 12 2005 *)

%K nonn,easy

%O 1,1

%A _Parthasarathy Nambi_, Jan 04 2005

%E More terms from _Robert G. Wilson v_, Jan 12 2005