1+2+4+16 = 23
Type: Posts; User: Norm
1+2+4+16 = 23
Now we're getting into higher math.
Very good Sean. Using BigDecimal does it.
So the website is wrong.
You'll have to find a math guy for help on this one.
That's the way it goes sometimes.
Double check your code.
int encrypted = encrypt(2, e, p, q); // here value is 2
vs
int encrypted = encrypt('2', e, p, q); // here it is '2' or 50