When I build it, it show me: 3322096072623696, which is wrong, because GP Pari shows different: 36522171218096.
What I need to do, to get same results as PARI gives to me?
Tnx :)
I think long long is generally only 64 bits, and can hold up to about 10^19 (20 in case of unsigned). So you probably have integer overflow. You could look into large number library, or just try to do the math yourself.