chickadee » math » next-prime

next-prime zprocedure
z
integer

Returns the first prime larger than z.

> (next-prime 4)
5
> (next-prime 5)
7