Prime – HP Prime Graphing Calculator User Manual
Page 339
Functions and commands
335
Factors
Returns the prime factor decomposition of an integer.
ifactor(Intg(a))
Example:
ifactor(150)
returns
[2*3*5
Factor List
Returns the list of prime factors of an integer or a list of
integers, with each factor is followed by its multiplicity.
ifactors(Intg(a)
or
(LstIntg))
Example:
ifactors(150)
returns
[2, 1, 3, 1, 5, 2]
GCD
Returns the greatest common divisor of two or more integers.
gcd((Intg(a),Intg(b)...Intg(n))
Example:
gcd(32,120,636)
gives
4
LCM
Returns the lowest common multiple of two or integers.
lcm((Intg(a),Intg(b)...Int(n))
Example:
lcm(6,4)
gives
12
Prime
Test if Prime
Tests whether or not a given integer is a prime number.
isPrime(Intg(a))
Example:
isPrime(1999)
returns
1
Nth Prime
Returns the nth prime number less than 10000.
ithprime(Intg(n)) where n is between 1 and 1229
Example:
ithprime(5)
returns
11
Next Prime
Returns the next prime or pseudo-prime after an integer.
nextprime(Intg(a))
Example:
nextprime(11)
returns
13
- iPAQ Glisten (185 pages)
- iPAQ Glisten-AT&T (185 pages)
- iPAQ rx5900 Travel Companion (10 pages)
- iPAQ h1900 Pocket PC series (127 pages)
- iPAQ hx2700 Pocket PC series (168 pages)
- QuickSpecs H5400 (13 pages)
- 620LX (172 pages)
- IPAQ H1930 (13 pages)
- 700 Series (204 pages)
- iPAQ h5150 (8 pages)
- Jornada 420 (146 pages)
- iPAQ PC h1910 (2 pages)
- HX2000 (11 pages)
- iPAQ hx2000 Series (3 pages)
- h4000 (141 pages)
- iPAQ HX2495b (10 pages)
- 820e (178 pages)
- 820 (186 pages)
- iPAQ h1910 (105 pages)
- iPAQ hx2790c (10 pages)
- IPAQ Pocket PC hx2110 (7 pages)
- rx3000 Series (301 pages)
- iPAQ hx4700 (169 pages)
- 2490 (14 pages)
- iPAQ hw6500 (170 pages)
- h6300 (190 pages)
- IPAQ HX2750 (9 pages)
- iPAQ h2200 Pocket PC series (125 pages)
- iPAQ Pocket PC h5400 Series (10 pages)
- Jornada 520 (134 pages)
- iPAQ h4100 Pocket PC series (143 pages)
- IPAQ H5100 (169 pages)
- h5400 (273 pages)
- IPAQ RX3000 (60 pages)
- H2200 (9 pages)
- UNIX AA-XXXXX-TF (15 pages)
- Jornada 540 Series (135 pages)
- PC Series (22 pages)
- 430se (151 pages)
- h1937 EN (127 pages)
- PrintCalc 100 (33 pages)
- PrintCalc 100 (32 pages)
- 48gII Graphing Calculator (892 pages)
- 48gII Graphing Calculator (864 pages)
- EliteBook 2740p Tablet-PC (179 pages)