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.

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

This page as a plain text file.
%I A066024 #14 Dec 04 2024 23:04:41
%S A066024 24,25,27,29,33,34,35,37,38,42,43,45,47,49,52,53,54,56,57,59,65,67,72,
%T A066024 73,74,75,76,78,79,83,87,92,94,95,97,125,126,128,133,144,146,148,152,
%U A066024 162,164,166,182,184,188,215,216,218,222,223,225,227,229,232,245,247
%N A066024 Numbers k such that the product of the digits of k minus the sum of the digits of k is prime.
%H A066024 Harry J. Smith, <a href="/A066024/b066024.txt">Table of n, a(n) for n = 1..1000</a>
%e A066024 a(1)=24 because 2 + 4 = 6, 2*4 = 8, and 8 - 6 = 2, which is prime. [corrected by _Harry J. Smith_, Nov 07 2009]
%o A066024 (PARI) isok(k) = {my(d=digits(k)); isprime(vecprod(d)-vecsum(d))} \\ _Harry J. Smith_, Nov 07 2009
%Y A066024 Cf. A038369, A066027.
%K A066024 easy,nonn,base
%O A066024 1,1
%A A066024 _Enoch Haga_, Dec 11 2001