gmp_nextprime

PHP 5 >= 5.2.0, PHP 7, PHP 8
gmp_nextprime - Find next prime number
Manual
Code Examples

Example #1 gmp_nextprime example

Result: 11 2
PHP Version: