Updated "Largest prime factor"

Removed unnecessary check for prime