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!)
A066776 Numbers n such that A043347(n) is a prime. 3

%I #3 Feb 11 2014 19:05:24

%S 1,2,3,4,69,113

%N Numbers n such that A043347(n) is a prime.

%C A043347(170) already has over a thousand digits.

%t a[n_] := (k = Prime[ Floor[n^(3/2)]] + 6; l = Sum[ Prime[i], {i, 1, n - 1} ]; b = ""; Do[ b = StringJoin[b, ToString[ Prime[i]]], {i, 1, k} ]; Return[ ToExpression[ StringTake[ StringDrop[b, l], Prime[n]]]]); Do[ If[ PrimeQ[ a[n]], Print[n]], {n, 1, 180} ]

%K base,hard,nonn

%O 1,2

%A _Joseph L. Pe_, Jan 14 2002

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 July 5 03:18 EDT 2024. Contains 374017 sequences. (Running on oeis4.)