found largest prime factor
added solution for smallest multiple