Ad
  • Default User Avatar

    Beautifull code.

    Only a little problem: you are making the conversion form "BigInteger n" to it's "intValue" only to make a loop.
    It's not realist to think that the "n" parameter can be so big that you really need a "BigInteger" to contain it, I know. But this is the parameter type established... so it's theorically possible that it happens and the conversion to "int" turns in trouble.