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 A281170 #25 Feb 16 2017 03:05:46 %S A281170 19,109,1009,1777,1889,1979,1997,2677,2699,2767,2789,2879,2897,2969, %T A281170 3779,3797,4567,4657,4679,4967,5399,5557,5647,5669,5737,5849,5939, %U A281170 6277,6299,6367,6389,6547,6563,6569,6637,6653,6659,6673,6763,6947,6983,7177 %N A281170 Primes p whose decimal representation satisfy: abs(digsum(p)-2*L(p)) = 8, being L(p) the largest decimal digit in p. %e A281170 a(4) = 1777, since abs(digsum(1777)-2*L(1777)) = abs(A007953(1777)-2*A054055(1777)) is 8 and among the primes 1777 is the 4th element satisfying such condition. %t A281170 Select[Prime@ Range[10^3], Abs[Max@ # - Total@ Rest@ #] == 8 &@ Reverse@ Sort@ IntegerDigits@ # &] (* _Michael De Vlieger_, Feb 02 2017 *) %o A281170 (PARI) listA281170(k,{k0=8})={my(H=List(),y);forprime(z=prime(k0),prime(k),y=digits(z);if(abs(vecsum(y)-2*vecmax(y))==8,listput(H,z)));return(vector(#H,i,H[i]))} \\ Looks for those belonging terms between prime(k0) and prime(k). - _R. J. Cano_, Feb 06 2017 %Y A281170 Subsequence of A280993. %Y A281170 Cf. A007953, A054055, A156753, A156979. %K A281170 nonn,base %O A281170 1,1 %A A281170 _Osama Abuajamieh_, Jan 16 2017