ISAS2 Group3 2ISA2
ISAS2 Group3 2ISA2
(ISAS)
PRIME FACTORIZATION
Created By:
1. Dionisius Albertus L. L - 2120010039
2. Jeremi Lukas Susanto - 2120010251
3. Muhammad Falahul Islam - 2120010350
Faculty: Kevin Harada S.Kom
Quarter:
Class: 2 ISA 2
Author
i
TABLE OF CONTENTS
PREFACE…………………………………………………………………………………….i
TABLE OF CONTENTS…………………………………………………………………….ii
TABLE OF FIGURE……………………………………………………………………..…iii
CHAPTER 1………………………………………………………………………………….1
INTRODUCTION……………………………………………………………………………1
I.1 Background………………………………………………………………………………. 1
I.2 Writing Objectives……………………………………………………………………….. 1
I.3 Problem Domain…………………………………………………………………………. 1
I.4 Writing Methodology……………………………………………………………………..1
I.5 Writing Framework……………………………………………………………………….1
CHAPTER II………………………………………………………………………………… 3
BASIC THEORY……………………………………………………………………………. 3
II.1 Definition of Algorithms………………………………………………………………... 3
II.2 Definition of Data Structure…………………………………………………………….. 4
II.3 Definition of Prime Factorizations……………………………………………………... 5
CHAPTER III………………………………………………………………………………...6
PROBLEM ANALYSIS…………………………………………………………………….. 6
III.1 How Prime Factorizations Works……………………………………………………… 6
III.2 Algorithm of Prime Factorizations……………………………………………………...7
III.3 Advantage(s) and Disadvantage(s)…………………………………………………….. 8
CHAPTER IV………………………………………………………………………………...9
CONCLUSION AND SUGGESTION……………………………………………………… 9
IV.1 Conclusion………………………………………………………………………………9
IV.2 Suggestion……………………………………………………………………………… 9
BIBLIOGRAPHY…………………………………………………………………………..10
ii
TABLE OF FIGURE
Figure 1. Example of Using Algorithms for Email Validation……………………………… 3
Figure 2. Data Structure Hierarchy………………………………………………………….. 4
Figure 3. Prime Factorizations Using Tree Method…………………………………………. 6
Figure 4. Prime Factorizations Using Division Method……………………………………...6
Figure 5. The Syntax of Prime Factorization in Python……………………………………...7
Figure 6. The Output………………………………………………………………………… 7
Figure 7. The Output from the Number User’s Want……………………………………….. 7
iii
CHAPTER I
INTRODUCTION
I.1 Background
The rapid development of technology, especially computer technology is no longer
in doubt. We also have to force ourselves to keep up with technological developments in
order to adapt and live a competitive life. Beside it, also in order not to be left behind and
belittled by others. In the world of computer programming there are algorithms and several
programming languages such as C, C++, Java, Python, and others. On this occasion we will
discuss about Algorithms and Data Structures regarding the Prime Factorization type.
1
2
Bibliography
In this section contains the references that we use to make this ISAS.
CHAPTER II
BASIC THEORY
II.1 Definition of Algorithms
Algorithms is an effective method and a set of instructions for solving a problem
systematically, structured and logically. The problem can be anything, with conditions that
must be fulfilled before running the algorithm. In some problem’s cases, an algorithm could
have an iteration and also decisions making until the problem is solved.
Algorithms have several characteristics, such as; Algorithms terminate after a fixed
number of steps; Each step in the algorithm clearly defines the action to be performed; The
steps in the algorithm define basic operations. These operations can include calculations,
input/output operations and comparisons; An algorithm accepts the input data, in a defined
format, before it can be processed; The algorithm produces one or more outputs after the
inputs are processed. The resulting information referred to as output can be displayed or
stored for future reference.
3
4
Figure 3 Figure
Prime Factorizations Using Tree
4 Prime Factorizations Method
Using Division Method
Ref: https://www.cuemath.com/en-id/
Ref: https://www.cuemath.com/en-id/
5
6
The author also got another example for the algorithm of the prime factorizations in
Python shown on this picture below:
The picture down below is the output of the syntax from picture’s above:
The syntax gives users to input any number in order to find the prime factorization. On this
example, we try to input the number 620, and after we input the number, we can get the prime factor
(prime factorization) immediately:
IV.2 Suggestion
To make it easier to find the factorization value of a number in the algorithm . We can
use several methods, there are factor tree method and division method. From this discussion
about ISAS, we hope that readers can find out more about Prime Factorization.
9
BIBLIOGRAPHY
Reference(s) from site:
1. https://study.com/academy/lesson/what-is-an-algorithm-in-programming-definition-
examples-analysis.html [08/06/2022]
2. https://interestingengineering.com/the-incredible-importance-of-prime-numbers-in-daily-
life#:~:text=There%20are%20dozens%20of%20important,of%20harmonics%20in%20their
%20products [08/06/2022]
3. https://www.geeksforgeeks.org/data-structures/ [08/06/2022]
4. https://docplayer.info/163266489-Pendahuluan-a-latar-belakang-b-tujuan.html
[08/06/2022]
5. https://people.revoledu.com/kardi/tutorial/BasicMath/Prime/Algorithm-PrimeFactor.html
[08/06/2022]
6. https://www.merdeka.com/jabar/algoritma-adalah-logika-berikut-definisi-dan-ciri-cirinya-
kln.html [08/06/2022]
10