Number theory › Digits › Extremes with digit conditions

Largest prime factor of digit-product sum

High school · ●●●○○ 50 pts

For a positive integer nn, let p(n)p(n) be the product of the non-zero digits of nn. For example, p(7)=7p(7)=7 and p(204)=2×4=8p(204)=2\times 4=8. Let S=p(1)+p(2)+⋯+p(999)S=p(1)+p(2)+\cdots+p(999). What is the largest prime factor of SS?

Sign in to save your progress.

digit problemsprime factorisationdifference of cubes