https://www.wikimass.com/php/prime-factor