Efficient modular inversion with prime number test Application EP-2587713-A3 European Patent Office 02 Oct 2013