gmp_nextprime
Supported Versions: PHP 5 >= 5.2.0, PHP 7, PHP 8
Find next prime number
<?php gmp_nextprime
(
GMP
|
int
|
string $num
):
GMP