login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A108978 Numbers k such that 29*k + 31 is prime. 1
0, 2, 8, 12, 24, 42, 44, 48, 50, 54, 68, 78, 80, 84, 92, 108, 110, 120, 134, 140, 162, 164, 168, 174, 182, 188, 194, 210, 218, 222, 230, 240, 264, 272, 278, 282, 300, 308, 314, 320, 330, 338, 342, 344, 350, 362, 378, 392, 402, 408, 414, 420, 422, 440, 444, 458 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

LINKS

G. C. Greubel, Table of n, a(n) for n = 1..10000

EXAMPLE

If k=0 then 29*k + 31 = 31 (prime).

If k=92 then 29*k + 31 = 2699 (prime).

MAPLE

a:=proc(n) if isprime(29*n+31)=true then n else fi end: seq(a(n), n=0..530); # Emeric Deutsch, Aug 04 2005

MATHEMATICA

Select[Range[0, 500], PrimeQ[29#+31]&]  (* Harvey P. Dale, Jan 13 2011 *)

PROG

(PARI) is(n)=isprime(29*n+31) \\ Charles R Greathouse IV, Jun 13 2017

(MAGMA) [n: n in [0..500] | IsPrime(29*n+31)]; // G. C. Greubel, May 19 2019

(Sage) [n for n in (0..500) if is_prime(29*n+31)] # G. C. Greubel, May 19 2019

(GAP) Filtered([0..500], k-> IsPrime(29*k+31) ) # G. C. Greubel, May 19 2019

CROSSREFS

Sequence in context: A280252 A013654 A277804 * A269968 A135957 A107755

Adjacent sequences:  A108975 A108976 A108977 * A108979 A108980 A108981

KEYWORD

nonn,easy

AUTHOR

Parthasarathy Nambi, Jul 27 2005

EXTENSIONS

More terms from Emeric Deutsch, Aug 04 2005

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 1 09:36 EDT 2021. Contains 346385 sequences. (Running on oeis4.)