core/basics/src/prime library

Functions

prime({int? max}) int
Return a random prime number, optionally between 1 and max.