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!)
A297421 Numbers k such that (10^(2k) + 2*(10^k) + 4)/4 is prime. 0
1, 2, 3, 15, 175, 449, 16563 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Numbers of this form divide 10^(3k)-8.
a(7) > 3000. - Jon E. Schoenfield, Jan 02 2018
a(8) > 50000. - Robert Price, Apr 11 2018
LINKS
EXAMPLE
31, 2551, 250501, and 250000000000000500000000000001 are prime, while 25005001=7*79*103*439, 2500050001=19*2269*57991, etc.
MAPLE
select(k->isprime((10^(2*k)+2*(10^k)+4)/4), [$1..1000]); # Muniru A Asiru, Apr 11 2018
MATHEMATICA
Select[Range[10^3], PrimeQ[(10^(2 #) + 2 (10^#) + 4)/4] &] (* Michael De Vlieger, Dec 30 2017 *)
PROG
(PARI) isok(k) = isprime((10^(2*k)+2*(10^k)+4)/4); \\ Michel Marcus, Dec 30 2017
CROSSREFS
Sequence in context: A165657 A091835 A131612 * A180723 A162102 A087975
KEYWORD
nonn,more
AUTHOR
Patrick A. Thomas, Dec 30 2017
EXTENSIONS
a(5)-a(6) from Michel Marcus, Dec 30 2017
a(7) from Robert Price, Apr 11 2018
STATUS
approved

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 24 22:17 EDT 2024. Contains 371964 sequences. (Running on oeis4.)