primorial {primes}R Documentation

Compute the Primorial

Description

Computes the primorial for prime numbers and natural numbers.

Usage

primorial_n(n)

primorial_p(n)

Arguments

n

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

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.

Value

A numeric vector of length 1.

Author(s)

Paul Egeler, MS


[Package primes version 1.6.0 Index]