Project Euler Problem 474

For a positive integer n and digits d, we define F(n, d) as the number of the divisors of n whose last digits equal d.

Project Euler Problem 474

Solution

Answer: 9690646731515010

Working