focus expression text field at startup -> version 1.2
[LeanCalc.git] / help / pfact
1 NAME
2     pfact - product of primes up to specified integer
3
4 SYNOPSIS
5     pfact(n)
6
7 TYPES
8     n           nonnegative integer
9
10     return      positive integer
11
12 DESCRIPTION
13     Returns the product of primes p_i for which p_i <= n.
14
15 EXAMPLE
16     > for (i = 0; i <= 16; i++) print pfact(i),:;
17     1 1 2 6 6 30 30 210 210 210 210 2310 2310 30030 30030 30030 30030
18
19 LIMITS
20     n < 2^24
21
22 LINK LIBRARY
23     NUMBER *qpfact(NUMBER *n)
24     void zpfact(ZVALUE z, ZVALUE *dest)
25
26 SEE ALSO
27     fact, lcmfact
28