Project Euler 779 - Prime Factor and Exponent

Official link: https://projecteuler.net/problem=779