%I #48 Feb 16 2025 08:33:30
%S 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,
%T 26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,
%U 49,51,52,53,54,62,65,67,70,72,73,74,75,84,85,86,90,92
%N Nonnegative numbers n such that abs(n^4 - 97n^3 + 3294n^2 - 45458n + 213589) is prime.
%C 50 is the smallest number not in this sequence.
%H Robert Price, <a href="/A268200/b268200.txt">Table of n, a(n) for n = 1..2676</a>
%H Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/Prime-GeneratingPolynomial.html">Prime-Generating Polynomials</a>
%e 4 is in this sequence since abs(4^4 - 97*4^3 + 3294*4^2 - 45458*4 + 213589) = abs(256-6208+52704-181832+213589) = 78509 is prime.
%t Select[Range[0, 100], PrimeQ[#^4 - 97#^3 + 3294#^2 - 45458# + 213589] &]
%o (PARI) is(n)=isprime(abs(n^4-97*n^3+3294*n^2-45458*n+213589)) \\ _Charles R Greathouse IV_, Feb 20 2017
%Y Cf. A050268, A050267, A005846, A007641, A007635, A048988, A050265, A050266, A271980, A272030, A272074, A272075, A272160, A271144, A272285, A272401, A272438, A272444, A272410.
%K nonn,changed
%O 1,3
%A _Robert Price_, Apr 30 2016