Skip to main content
1 of 2
rahnema1
  • 5.7k
  • 1
  • 16
  • 22

#Maxima, 10 bytes

next_prime 

A function returns the smallest prime bigger than its argument.

rahnema1
  • 5.7k
  • 1
  • 16
  • 22