Bug confirmed with any integer with two or more different repeated factors (2^2 *...
I've successfully ported it to Windows, check it out: http://chengsun.github.io/...