1. what is the previous 2 prime number before 37
Solution:
We need to test each number to find the previous prime
36 is not prime, because it is divisible by 2
35 is not prime, because it is divisible by 5
34 is not prime, because it is divisible by 2
33 is not prime, because it is divisible by 3
32 is not prime, because it is divisible by 2
31 is prime, So Prime:1 = 31
30 is not prime, because it is divisible by 2
29 is prime, So Prime:2 = 29
Previous 2 prime before 37
31, 29
2. what is the previous prime number before 50
Solution:
We need to test each number to find the previous prime
49 is not prime, because it is divisible by 7
48 is not prime, because it is divisible by 2
47 is prime, So Prime:1 = 47
Previous prime before 50
47
3. what is the previous prime number before 100
Solution:
We need to test each number to find the previous prime
99 is not prime, because it is divisible by 3
98 is not prime, because it is divisible by 2
97 is prime, So Prime:1 = 97
Previous prime before 100
97
This material is intended as a summary. Use your textbook for detail explanation.
Any bug, improvement, feedback then