This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A349848 #25 Dec 06 2021 01:46:57 %S A349848 4,36,3275,840742,285331320285,304667330108466,827250200736677741479, %T A349848 1983900084687573008820254,20880542756369384174903669400953, %U A349848 2567686157477937962829648585022637187631942,17086936018496343189927728440572423322828545911 %N A349848 a(n) = Sum_{k=1..n} prime(n)^prime(k). %e A349848 For n=3, p=5, a(n) = 5^2 + 5^3 + 5^5 = 25 + 125 + 3125 = 3275. %o A349848 (PARI) a(n) = my(p=prime(n)); sum(k=1, n, p^prime(k)); \\ _Michel Marcus_, Dec 02 2021 %o A349848 (Python) %o A349848 from sympy import prime, primerange %o A349848 def a(n): pn = prime(n); return sum(pn**pk for pk in primerange(1, pn+1)) %o A349848 print([a(n) for n in range(1, 12)]) # _Michael S. Branicky_, Dec 02 2021 %K A349848 nonn %O A349848 1,1 %A A349848 _Firdous Ahmad Mala_, Dec 02 2021 %E A349848 More terms from _Michel Marcus_, Dec 02 2021