Maxima Function
next_prime (n)
Returns the smallest prime bigger than n.
(%i1) next_prime(27); (%o1) 29