test triangle numbers by factorization of a single large int