Melang

Logo

A script language of time-sharing scheduling coroutine in single thread

View the Project on GitHub Water-Melon/Melang

Prime Number

Import

p = Import('prime');
prime

Generate a prime number greater than or equal to a given number.

p.prime(base);

Input:

Return value:

Error:

Example:

p = Import('prime');
sys = Import('sys');

sys.print(p.prime(22));

The output is:

23