%I A059790
%S A059790 1,1,1,1,1,3,3,1,1,1,1,1,1,3,3,1,5,5,3,3,3,1,1,1,1,3,5,3,5,1,3,1,3,1,5,
%T A059790 5,1,5,3,1,1,3,1,3,3,1,1,3,3,1,1,1,3,1,5,3,3,1,3,1,3,1,1,3,5,3,1,1,3,3,
%U A059790 3,1,1,3,1,3,5,3,5,3,1,3,1,3,1,1,9,3,3,3,3,5,3,1,1,3,1,3,3,5,1,3,3,9,9
%N A059790 Distance between 2*(nth prime) and nearest prime.
%e A059790 Distance 1 means that either 2p+1 or 2p-1 is also prime.
%p A059790 with(numtheory): [seq(min(2*ithprime(k)-prevprime(2*ithprime(k)), nextprime(2*ithprime(k))-2*ithprime(k)),
k=1..256)];
%Y A059790 A005382-A005385.
%Y A059790 Sequence in context: A143333 A065551 A059441 this_sequence A130778 A016554
A046533
%Y A059790 Adjacent sequences: A059787 A059788 A059789 this_sequence A059791 A059792
A059793
%K A059790 nonn
%O A059790 0,6
%A A059790 Labos E. (labos(AT)ana.sote.hu), Feb 22 2001
|