Given any positive integer $n$, let $p(n)$ be the product of the non-zero digits of $n$. If $n$ has only one digit, then $p(n)$ is equal to that digit.

$Let: S = p(1) + p(2) + p(3) +\ldots + p(999)$.

What is the largest prime factor of $S$?

Excel in math and science

Master concepts by solving fun, challenging problems.

It's hard to learn from lectures and videos

Learn more effectively through short, interactive explorations.

Used and loved by over 7 million people

Learn from a vibrant community of students and enthusiasts,
including olympiad champions, researchers, and professionals.

Your answer seems reasonable.
Find out if you're right!