How can we deal with large number in vb.net -


i have large number , when run below code doesn't handle it, should ?

number = number ^ 103 mod 143 

i got infinity.

you need use biginteger.modpow:

number = biginteger.modpow(number, 103, 143) 

here how add reference system.numerics vb.net project:

enter image description here


Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -