change from int to BigInt in factorbase