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!)
A061789 a(n) = Sum_{k=1..n} prime(k)^prime(k). 6
4, 31, 3156, 826699, 285312497310, 303160419089563, 827240565046755853740, 1979246896225360344977719, 20880469979094808259715377888286, 2567686153182091604540923022990731504371755 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
FORMULA
Partial sums of A051674. - R. J. Mathar, Apr 26 2007
EXAMPLE
a(3) = 2^2 + 3^3 + 5^5 = 3156.
MATHEMATICA
P3[n_] := Sum[Prime[i]^Prime[i], {i, 1, n}]; Table[P3[n], {n, 1, 10}] (* Vladimir Joseph Stephan Orlovsky, Apr 29 2008 *)
Accumulate[#^#&/@Prime[Range[10]]] (* Harvey P. Dale, Apr 10 2015 *)
PROG
(PARI) a=n=0; forprime (p=2, 383, write("b061789.txt", n++, " ", a+=p^p)) \\ Harry J. Smith, Jul 28 2009
(Python)
from itertools import accumulate, count, islice
from sympy import prime
def A061789_gen(): # generator of terms
yield from accumulate(((p:=prime(k))**p for k in count(1)))
A061789_list = list(islice(A061789_gen(), 20)) # Chai Wah Wu, Jun 17 2022
CROSSREFS
Cf. A051674.
Sequence in context: A005841 A005828 A084764 * A103909 A309906 A196247
KEYWORD
nonn,easy
AUTHOR
Amarnath Murthy, May 25 2001
EXTENSIONS
Corrected and extended by Jason Earls, May 26 2001
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 May 11 07:10 EDT 2024. Contains 372388 sequences. (Running on oeis4.)