Try to find a BigInt class in C to do your multiplications and modulus
Sorry, I'm not as experienced with C, so I don't know of a good implementation off hand. You might want to ask a new question (new thread) just for that before continuing on this question.
Comment