Hacker News new | past | comments | ask | show | jobs | submit login

It computes (2^b) % n, assuming n is an unsigned b-bit integer. You can't do this directly, since 2^b itself doesn't fit into a b-bit integer.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: