login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A137770 Prime numbers p such that p +- ((p-1)/7) are primes. 1

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

%S 211,673,883,1093,1303,2731,7561,8443,10711,13063,14323,15373,16843,

%T 18523,24571,30703,31081,31963,36541,36583,40111,41161,42043,43051,

%U 44563,44773,55441,63421,64891,65563,67411,68041,70393,71233,74551,75391,79843

%N Prime numbers p such that p +- ((p-1)/7) are primes.

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

%e 211+-30 = primes;

%e 673+-(672/7) = primes.

%t w=7;s="";For[i=1,i<10^3*2,p=Prime[i];If[PrimeQ[p-((p-1)/w)]&&PrimeQ[p+((p-1)/w)],(*Print[p,":",p-((p-1)/w),",",p+((p-1)/w)];*)s=s<>ToString[p]<>","];i++ ];Print[s]

%t Select[Prime[Range[80000]], PrimeQ[# + (# - 1) / 7] && PrimeQ[# - (# - 1) / 7] &] (* _Vincenzo Librandi_, Jun 15 2013 *)

%o (Magma) [p: p in PrimesInInterval(5, 80000)| IsPrime((8*p-1) div 7 ) and IsPrime((6*p+1) div 7)]; // _Vincenzo Librandi_, Jun 15 2013

%K nonn,easy

%O 1,1

%A _Vladimir Joseph Stephan Orlovsky_, Apr 27 2008

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 03:15 EDT 2024. Contains 371964 sequences. (Running on oeis4.)