GMAT Club

GMAT Podcast - Anna's 300-point GMAT score improvement journey. Listen here!

How to Solve: Prime Numbers : Quantitative

Expert's
post

Jul 15, 2022

Prime Numbers.pdf
(238.47 KiB) Downloaded 18 times


Hi All,

I have posted a video on YouTube to discuss about Prime Numbers



Attached pdf of this Article as SPOILER at the top! Happy learning! :)

Following is Covered in the Video

Theory
    ¤ What is a Prime Number?
    ¤ Generic form of a Prime Number
    ¤ How to check if a number is prime?
    ¤ Sample Problems


What is a Prime Number?

Prime numbers are the numbers which have only two factors
¤ The number itself
¤ And 1

Example of Prime numbers are : 2, 3, 5, 7, 11, 13

2 is the only even prime number

Only positive numbers can be prime numbers


Generic Form of Prime Numbers

All Prime Numbers (apart from 2 and 3) can be written as
¤ 6n + 1 or
¤ 6n - 1


Example

7 = 6 +1 (of the form 6n+1)
11 = 12 – 1 (of the form 6n-1)
13 = 12 + 1 (of the form 6n+1)
17 = 18 -1 (of the form 6n-1)


How to check if a number (n) is prime?

¤ Divide the number by 6 and check if the remainder is 1 or 5
¤ If the remainder is not 1 or 5 then it is NOT a prime number
¤ If the remainder is 1 or 5 then it CAN be a prime number
¤ Divide the number by all prime numbers from 2 to Sqrt(n) and check if it is divisible by any of these numbers
¤ If the number is divisible by ANY of the prime numbers from 2 to Sqrt(n) then it is NOT a prime number
¤ If the number is NOT divisible by ALL the prime numbers from 2 to Sqrt(n) then it is a prime number

img-1.JPG
img-1.JPG (66.19 KiB) Viewed 517 times
Open



Sample Problems

Q1. Check if a 123 is prime number or not

Solution:

img-2.JPG
img-2.JPG (64.58 KiB) Viewed 495 times
Open


¤ 123 divided by 6 gives 3 as remainder which is NOT 1 or 5
¤ 123 is NOT a prime number

Q2. Check if a 127 is prime number or not

Solution:

img-3.JPG
img-3.JPG (62.36 KiB) Viewed 516 times
Open


¤ 127 divided by 6 gives 1 as remainder
¤ 127 CAN be a prime number
¤ We need to divide 127 by all prime numbers from 2 to Sqrt(127) and check if it is divisible by any of these numbers
¤ Closest integer to Sqrt(127) is Sqrt(121) = 11. So prime numbers from 2 to 11. 2,3,5,7,11
¤ 127 is NOT divisible by ALL the prime numbers 2,3,5,7,11.
¤ 127 is a prime number

Hope it Helps!

My Rewards

Announcements

Live on YouTube
Wednesday, Apr 19,
11:30am ET; 3:30pm GMT; 9pm IST




✅ Learn core skills and time management & test-taking strategies needed to score 750+ on the GMAT

✅ Subscribe to us on YouTube https://www.youtube.com/user/gmatclub?s ... irmation=1 & Get Forum Quiz FREE for 7 Days https://gmatclub.com/google_verify.php


All times are UTC - 8 hours [ DST ]

0 user online