Currently the algorithm fails on fairly large numbers
Currently the algorithm fails on fairly large numbers