QA- Numbers Flashcards
What are Integers :
All numbers whose fractional part is 0 (zero) like -3, -2, 1, 0, 10, 100 are integers.
Natural Numbers :
Counting numbers like 1, 2, 3, 4, 5, 6 … Basically, all integers greater than 0 are natural numbers.
Whole Numbers :
All natural numbers and 0 (zero) are whole numbers.
Prime Numbers :
All numbers having only two distinct factors, the number itself and 1, are called prime numbers. Some prime numbers are 2, 3, 53, 67 and 191.
Composite Number :
All numbers greater than 1 which are NOT prime are composite numbers. Some composite numbers are 4, 60, 91 and 100.
TF 1 is neither prime, nor composite.
t
2 is the only even prime number. TF
T
There are 25 prime numbers less than 100. TF
T
They are : 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97.
How to check if a number is prime?
To check if a number ‘p’ is prime, find a number ‘n’ such that ‘n’ is the smallest natural number which satisfies n2 >= p. Now, check if ‘p’ is divisible by any of the prime numbers less than or equal to ‘n’. If ‘p’ is NOT divisible by any such prime numbers, ‘p’ is a prime number. Otherwise, p is not a prime number.
How to check if two numbers are co prime
Co-primes : Two numbers ‘a’ and ‘b’ are called co-prime if their highest common factor (HCF) is 1.
Divisibility By 2 :
A number is divisible by 2 if the last digit is any of 0, 2, 4, 6, 8.
Divisibility By 3:
A number is divisible by 3 if the sum of its digits is divisible by 3. For example, 12321 is divisible by 3 because 1 + 2 + 3 + 2 + 1 = 9 and 9 is divisible by 3.
Divisibility By 4 :
A number is divisible by 4 if the last two digits are divisible by 4. For example, 1234 is not divisible by 4 as the last two digits 34 is not divisible by 4. But, 1232 is divisible by 4 as the last two digits 32 is divisible by 4.
Divisibility By 5 :
A number is divisible by 5 if the last digit is either 0 or 5.
Divisibility By 6 :
A number is divisible by 6 if it is divisible by both 2 and 3. For example, 114 is divisible by 6 as it is divisible by both 2(last digit is 4) and 3 (1+1+4=6, 6 is divisible by 3).