nextprime

Calculates next prime number. Depending on input, function can return scalar, vector or matrix

Arguments

  1. Integer n, not larger than 10.000

Output

Real value, vector or matrix

Examples

nextprime