Hide thumbs Also See for EL-9900C:
Table of Contents

Advertisement

PRIME FACTORIZATION

1. Program the calculator to find the prime factorization of a whole number
greater than 2. This method decomposes a number into the prime factors
2, 3, 5, etc.
2. Create a new program with the name DECOMP. Enter the following program
and remember to press ENTER at the end of each line. If you make a
mistake, use the calculator's editing features to correct the error.
3. Enter the following program using the Advanced Keyboard:
Input N
2⇒D
Label A
÷
If (N
D) = int
÷
(N
D) Goto B
D+1⇒D
If D ≤ √N Goto A
Goto C
Label B
÷
N
D⇒N
Print D
Goto A
Label C
Print N
End
Press 2ndF
Basic Keyboard/PROGRAMMING USING THE SHARP EL-9900
Copyright © 2002, Sharp Electronics Corporation. Permission is granted to photocopy for educational use only.
PRGM
A
2
STO
ALPHA
PRGM
B
PRGM
B
ALPHA
D
(
ALPHA
PRGM
B
ALPHA
D
ENTER
PRGM
B
F
6
2ndF
B
0
2
PRGM
B
PRGM
B
ALPHA
N
N
ENTER
PRGM
A
PRGM
B
PRGM
B
PRGM
A
PRGM
A
QUIT to exit the editor.
3
ALPHA
N
ENTER
D
ENTER
0
1
ALPHA
A
(
0
3
ALPHA
)
ALPHA
=
÷
N
ALPHA
D
0
2
ALPHA
B
+
1
STO
ALPHA
0
3
ALPHA
D
ALPHA
N
ALPHA
A
ENTER
0
2
ALPHA
C
0
1
ALPHA
B
÷
ALPHA
D
1
ALPHA
D
ENTER
0
2
ALPHA
A
0
1
ALPHA
C
1
ALPHA
N
ENTER
6
ENTER
3
ENTER
÷
N
MATH
B
0
5
)
ENTER
D
MATH
PRGM
ENTER
ENTER
STO
ALPHA
ENTER
ENTER

Advertisement

Table of Contents
loading

This manual is also suitable for:

El-9900

Table of Contents