Skip to content

Prime

Prime(n)

returns the nth prime number.

See

Examples

Note that the first prime is 2, not 1:

>> Prime(1)
2
>> Prime(167)
991

When given a list of integers, a list is returned:

>> Prime({5, 10, 15})
{11,29,47}

Implementation status

  • ☑ - partially implemented

Github