number_primes Number number_probableprime

Number >> Number > number_primorial

number_primorial

Returns the product of all primes lower or equal to n

Calling Sequence

p = number_primorial ( n )

Parameters

n :

a 1x1 matrix of floating point integers, must be positive

p :

a 1x1 matrix of floating point integers

Description

The primorial function p(n) is p1*p2*...*pn, where pi are primes lower or equal than n.

Examples

number_primorial ( 2 ) // 2
number_primorial ( 3 ) // 2*3
number_primorial ( 4 ) // 2*3
number_primorial ( 7 ) // 2*3*5*7

Authors

number_primes Number number_probableprime