Learn R Programming

primes (version 1.6.0)

primorial: Compute the Primorial

Description

Computes the primorial for prime numbers and natural numbers.

Usage

primorial_n(n)

primorial_p(n)

Value

A numeric vector of length 1.

Arguments

n

an integer indicating the numbers to be used in the computation. See Details for more information.

Author

Paul Egeler, MS

Details

The primorial_p function computes the primorial with respect the the first n prime numbers; while the primorial_n function computes the primorial with respect the the first n natural numbers.