A000040: Prime numbers

PrimeR Documentation

Prime numbers

Description

Under OEIS A000040, a Prime number is a natural number with no positive divisors other than 1 and itself. First 6 prime numbers are 2, 3, 5, 7, 11, 13.

Usage

Prime(n, gmp = TRUE)

Arguments

n

the number of first n entries from the sequence.

gmp

a logical; TRUE to use large number representation, FALSE otherwise.

Value

a vector of length n containing first entries from the sequence.

Examples

## generate first 30 Regular numbers
print(Prime(30))


kisungyou/Zseq documentation built on Sept. 13, 2022, 5:12 a.m.