Backtracking Algorithm
Backtracking Algorithm
LABORATORY
GROUP 3:
POLYMORPHS
Cablitas, Charlyn Mae Mangayao, Laurence Marquez, John Isaac Penus, Hannah Wong, Marie Shaira Lou
(Group leader) (Member) (Member) (Member) (Member)
Are you ready?
DIRECTION:
Activities / Assessment Tasks: Do the following tasks with your groupmates. Your
answers should not be longer than one short bond paper. Prepare to be called in
class. Use Arial 12 with 1.15 line spacing.
2. Create an Algorithm that will check whether an entered number is Prime or not. A
prime number is a whole number greater than 1 whose only factors are 1 and itself.
A factor is a whole number that can be divided evenly into another number. The first
few prime numbers are 2, 3, 5, 7, 11, 13, 17, 19, 23 and 29. Numbers that have more
than two factors are called composite numbers.