You are viewing a single comment's thread from:
RE: Project Euler Problems for Learn Programming - Solution 3 (Python & Javascript)
According to this solution, the prime factor of 25
is 25
. Shouldn't that be 5
instead?
According to this solution, the prime factor of 25
is 25
. Shouldn't that be 5
instead?
You're right. I forgot notice that if largest prime factor's square equal to number, solution is invalid. Let's suppose that our number is
169
then result will169
.