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!)
A107304 Numbers k such that 5k - 7 is prime. 1

%I #24 Sep 08 2022 08:45:18

%S 2,4,6,10,12,16,18,22,24,34,36,40,46,48,54,58,60,64,72,76,78,88,90,94,

%T 102,106,114,120,124,130,132,136,138,148,150,156,166,172,174,178,192,

%U 198,204,208,214,220,222,226,232,234,240,244,246,258,262,276,286,288

%N Numbers k such that 5k - 7 is prime.

%C 5 and 7 are twin primes.

%H Daniel Starodubtsev, <a href="/A107304/b107304.txt">Table of n, a(n) for n = 1..10000</a>

%e If k=2, then 5*k - 7 = 3 (prime).

%e If k=34, then 5*k - 7 = 163 (prime).

%t Select[Range[2,300],PrimeQ[5#-7]&] (* _Harvey P. Dale_, May 22 2013 *)

%o (Magma) [n: n in [2..300]| IsPrime(5*n-7)]; // _Vincenzo Librandi_, Nov 13 2010

%o (PARI) is(n)=isprime(5*n-7) \\ _Charles R Greathouse IV_, Dec 27 2013

%o (PARI) [n\5+2 | n<-primes(10^3), n%5==3] \\ _Charles R Greathouse IV_, Dec 27 2013

%Y Cf. A030431.

%K nonn

%O 1,1

%A _Parthasarathy Nambi_, May 20 2005

%E More terms from _Kyle D. Balliet_, Feb 28 2009

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 13:02 EDT 2024. Contains 371969 sequences. (Running on oeis4.)