primorial: Compute the Primorial

primorialR 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


primes documentation built on Nov. 8, 2023, 5:07 p.m.