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.

A066027 Numbers k such that the sum of digits of k minus the product of digits of k is prime.

This page as a plain text file.
%I A066027 #13 Dec 04 2024 23:04:45
%S A066027 20,30,50,70,101,102,104,106,110,111,112,113,114,115,116,117,118,119,
%T A066027 120,121,131,140,141,151,160,161,171,181,191,200,201,203,205,209,210,
%U A066027 211,230,250,290,300,302,304,308,311,320,340,380,401,403,407,409,410
%N A066027 Numbers k such that the sum of digits of k minus the product of digits of k is prime.
%H A066027 Harry J. Smith, <a href="/A066027/b066027.txt">Table of n, a(n) for n = 1..1000</a>
%e A066027 a(11)=112 because 1 + 1 + 2 = 4, 2*1*1 = 2, and 4 - 2 = 2, which is prime. [corrected by _Harry J. Smith_, Nov 07 2009]
%o A066027 (PARI) isok(k) = {my(d=digits(k)); isprime(vecsum(d) - vecprod(d))} \\ _Harry J. Smith_, Nov 07 2009
%Y A066027 Cf. A066024, A038369.
%K A066027 easy,nonn,base
%O A066027 1,1
%A A066027 _Enoch Haga_, Dec 11 2001