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 A171240 #8 Jun 23 2017 13:19:20 %S A171240 2,3,17,5,57,7,18785,7073,593,11,2169,13,67137425,4785713,32993,17, %T A171240 131361,19,274878037265,3486792401,2097593,23,789730223201638705, %U A171240 59604644783353249,1125899907233249,2541865845905,134218457,29,536871753,31 %N A171240 a(n) = n^d+d^n where d = A013632(n) is the distance to the next prime. %t A171240 dnp[n_]:=Module[{d=NextPrime[n]-n},n^d+d^n]; Array[dnp,20](* _Harvey P. Dale_, Jun 23 2017 *) %Y A171240 Cf. A013632, A013236, A171228. %K A171240 nonn %O A171240 1,1 %A A171240 _Juri-Stepan Gerasimov_, Dec 05 2009 %E A171240 Definition and some values corrected - _R. J. Mathar_, Jun 04 2010 %E A171240 More terms from _Harvey P. Dale_, Jun 23 2017