1Math::NumSeq::PrimorialUss(e3r)Contributed Perl DocumentMaattiho:n:NumSeq::Primorials(3)
2
3
4

NAME

6       Math::NumSeq::Primorials -- primorials 2*3*...*p[i]
7

SYNOPSIS

9        use Math::NumSeq::Primorials;
10        my $seq = Math::NumSeq::Primorials->new;
11        my ($i, $value) = $seq->next;
12

DESCRIPTION

14       The sequence of primorials, being the product of the first i many
15       primes, 2*3*5*...*p[i].
16
17           1, 2, 6, 30, 210, ...
18           starting i=0
19

FUNCTIONS

21       See "FUNCTIONS" in Math::NumSeq for behaviour common to all sequence
22       classes.
23
24       "$seq = Math::NumSeq::Primorials->new ()"
25           Create and return a new sequence object.
26
27   Random Access
28       "$value = $seq->ith($i)"
29           Return "2*3*5*...*p[$i]".  For "$i==0" this is considered an empty
30           product and the return is 1.
31
32       "$bool = $seq->pred($value)"
33           Return true if $value is equal to "2*3*5*...*p[i]" for number of
34           primes.
35
36       "$i = $seq->value_to_i_floor($value)"
37           Return the index i of $value or of the next primorial below $value.
38
39       "$i = $seq->value_to_i_estimate($value)"
40           Return an estimate of the i corresponding to $value.
41

SEE ALSO

43       Math::NumSeq, Math::NumSeq::Factorials
44
45       "pn_primorial" in Math::Prime::Util
46

HOME PAGE

48       <http://user42.tuxfamily.org/math-numseq/index.html>
49

LICENSE

51       Copyright 2010, 2011, 2012, 2013, 2014, 2016, 2019 Kevin Ryde
52
53       Math-NumSeq is free software; you can redistribute it and/or modify it
54       under the terms of the GNU General Public License as published by the
55       Free Software Foundation; either version 3, or (at your option) any
56       later version.
57
58       Math-NumSeq is distributed in the hope that it will be useful, but
59       WITHOUT ANY WARRANTY; without even the implied warranty of
60       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
61       General Public License for more details.
62
63       You should have received a copy of the GNU General Public License along
64       with Math-NumSeq.  If not, see <http://www.gnu.org/licenses/>.
65
66
67
68perl v5.32.1                      2021-01-27       Math::NumSeq::Primorials(3)
Impressum