Modulus PHP Problem

前端 未结 3 515
刺人心
刺人心 2021-01-21 00:40

I have a problem, I am trying to calculate what the lowest prime is of a number but I do not understand the result that PHP is giving me.

If I have this number

3条回答
  •  暖寄归人
    2021-01-21 01:23

    See this bug listing here

    % does not not work for numbers over 2^31 (32-bit) or 2^63 (64-bit). Use BCMOD instead.

提交回复
热议问题