prime numbers need to be congruent to 3 modulus 4. In practice, this PRNG is
known to be slow and not efficient for the generation of random numbers. For
current GPU cards, the modulus operation is the most time consuming
operation. So in order to obtain quite reasonable performances, it is required
to use only modulus on 32 bits integer numbers. Consequently $x_n^2$ need to be
less than $2^{32}$ and the number $M$ need to be less than $2^{16}$. So in
prime numbers need to be congruent to 3 modulus 4. In practice, this PRNG is
known to be slow and not efficient for the generation of random numbers. For
current GPU cards, the modulus operation is the most time consuming
operation. So in order to obtain quite reasonable performances, it is required
to use only modulus on 32 bits integer numbers. Consequently $x_n^2$ need to be
less than $2^{32}$ and the number $M$ need to be less than $2^{16}$. So in