Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).
%I #11 Sep 08 2022 08:45:54
%S 2,4,7,9,14,20,22,30,35,39,45,51,56,57,70,75,79,87,89,92,104,110,111,
%T 115,121,122,127,160,164,176,195,210,211,222,232,237,246,255,257,294,
%U 301,306,315,336,356,360,372,375,382,406,412,429,444,445,462
%N Numbers n such that n^7-n^5+1 is prime.
%H Vincenzo Librandi, <a href="/A180742/b180742.txt">Table of n, a(n) for n = 1..1000</a>
%t Select[Range[10000],PrimeQ[#^7-#^5+1]&] (* _Vincenzo Librandi_, Jun 21 2012 *)
%o (Magma) [n: n in [0..1000]|IsPrime(n^7-n^5+1)]
%o (PARI) is(n)=isprime(n^7-n^5+1) \\ _Charles R Greathouse IV_, Jun 13 2017
%K nonn,easy
%O 1,1
%A _Vincenzo Librandi_, Jan 22 2011