cp's OEIS Frontend

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.

A095302 Smallest prime of the form k^n+2 with k>1.

This page as a plain text file.
%I A095302 #13 Aug 28 2025 06:31:41
%S A095302 3,5,11,29,83,59051,3518743763,4782971,6563,2357947693,59051,
%T A095302 8649755859377,282429536483,2541865828331,4782971,14348909,
%U A095302 6568408355712890627,762939453127,150094635296999123,15398217140735709790332844752065729,332525673007965087890627
%N A095302 Smallest prime of the form k^n+2 with k>1.
%H A095302 Vincenzo Librandi, <a href="/A095302/b095302.txt">Table of n, a(n) for n = 0..200</a>
%e A095302 a(5) = 59051 because 9^5+2 is prime whereas 3^5+2 = 5*7^2, 5^5+2 = 53*59 and 7^5+2 = 3*13*431 are composite.
%t A095302 sp[n_]:=Module[{k=2},While[!PrimeQ[k^n+2],k++];k^n+2]; Array[sp,30,0] (* _Harvey P. Dale_, Feb 22 2012 *)
%Y A095302 Cf. A087576 (corresponding k).
%Y A095302 Cf. A095303 and A095304 (for k^n-2).
%K A095302 nonn,changed
%O A095302 0,1
%A A095302 _Hugo Pfoertner_, Jun 01 2004
%E A095302 More terms from _Harvey P. Dale_, Feb 22 2012