0
0

Even, Odd, Prime, Composite

Introduction

Numbers को even, odd, prime या composite classify करना number theory और aptitude problems का basic foundation है। ये categories pattern पहचानने, divisibility shortcuts और आगे के topics जैसे factorization और modular arithmetic में मदद करती हैं।

Pattern: Even, Odd, Prime, Composite

Pattern

Integers को जल्दी classify करने के लिए simple divisibility और divisor-count rules का उपयोग करें।

  • Even: Integer n even है अगर n ≡ 0 (mod 2). Practically: last digit ∈ {0,2,4,6,8}.
  • Odd: Integer n odd है अगर n ≡ 1 (mod 2). Last digit ∈ {1,3,5,7,9}।
  • Prime: Integer p > 1 prime है अगर उसके सिर्फ दो positive divisors हों - 1 और p. Practical check: primes ≤ √p तक divisibility test करें।
  • Composite: Integer n > 1 जिसका कोई divisor d हो जहाँ 1 < d < n → यानी दो से ज़्यादा divisors हों।
  • Special note: 1 न prime है न composite।
  • Quick primality shortcuts:
    • अगर n even है और n > 2 → composite।
    • Digits का sum 3 से divisible हो (और n > 3) → composite।
    • Last digit 0 या 5 हो (और n > 5) → composite।
    • Primes > 3 सिर्फ form 6k ± 1 में आते हैं (useful filter), पर फिर भी √n तक divisibility test ज़रूरी है।
    • Sieve of Eratosthenes: N तक primes list करने का efficient तरीका (multiples को cross out करके)।
  • Formal practical test: n के लिए 2, 3 और फिर primes 5, 7, 11... √n तक test करें। कोई भी divide न करे तो prime, otherwise composite।

Step-by-Step Example

Question

Numbers 1, 2, 29 और 49 को even/odd और prime/composite में classify करें।

Solution

  1. Step 1: Number: 1

    Check: 1 के सिर्फ एक positive divisor है (1). Definition के अनुसार 1 न prime है न composite। यह odd है (last digit 1), पर prime/composite में “neither” category में आता है।

  2. Step 2: Number: 2

    Even/odd: last digit 2 → even.

    Prime test: divisors सिर्फ 1 और 2 → prime (सबसे छोटा और एकमात्र even prime)।

  3. Step 3: Number: 29

    Even/odd: last digit 9 → odd.

    Prime test: √29 ≈ 5.38 → primes ≤ 5 test करें → {2,3,5}.

    • 29 mod 2 = 1
    • 29 mod 3 = 2
    • 29 mod 5 = 4

    कोई divisor नहीं मिला → 29 prime है

  4. Step 4: Number: 49

    Even/odd: last digit 9 → odd.

    Prime test: √49 = 7 → primes ≤ 7 → {2,3,5,7}.

    • 49 mod 2 = 1
    • 49 mod 3 = 1
    • 49 mod 5 = 4
    • 49 mod 7 = 0 → divisible

    Divisor 7 मिला (1 < 7 < 49) → 49 composite है (49 = 7 × 7).

  5. Final Answer

    1 → neither prime nor composite (odd);
    2 → even & prime;
    29 → odd & prime;
    49 → odd & composite.

  6. Quick Check

    29 किसी small prime से divisible नहीं। 49 ÷ 7 = 7 composite confirm करता है। 2 prime confirm। 1 special case है। ✅

Quick Variations

1. Prime pairs (twin primes) जैसे (11,13), (17,19) पहचानें।

2. बड़े odd number के लिए √n तक trial division या large n के लिए probabilistic tests।

3. Small composites को primes ≤ √n से check करके factor करें।

Trick to Always Use

  • Step 1 → Even/odd के लिए last digit तुरंत check करें।
  • Step 2 → Composite को जल्दी eliminate करने के लिए 2, 3, 5 के simple rules use करें।
  • Step 3 → Primality test में सिर्फ √n तक divisors check करें (सिर्फ prime divisors)।
  • Step 4 → 6k ± 1 filter use करें ताकि obvious non-candidates skip हों।

Summary

Summary

  • Even/odd classification last digit से तय होती है।
  • Prime/composite classification divisors पर आधारित है - prime के दो divisors, composite के दो से ज़्यादा।
  • 1 special case है - न prime, न composite।
  • 2 एकमात्र even prime है; बाकी सभी even numbers composite होते हैं।

याद रखने लायक example:
Even/odd के लिए last digit देखें। Prime test के लिए 2, 3, 5 और फिर √n तक primes से divisibility test करें। कोई divide न करे तो number prime है।

Practice

(1/5)
1. Which of the following numbers is prime?
easy
A. 29
B. 33
C. 39
D. 51

Solution

  1. Step 1: Strategy:

    To test primality for numbers like 29, check divisibility by primes ≤ √29 (i.e., 2, 3, 5).
  2. Step 2: Tests:

    29 mod 2 = 1 (not divisible), 29 mod 3 = 2 (not divisible), 29 mod 5 = 4 (not divisible). Other options: 33 = 3 × 11 (composite), 39 = 3 × 13 (composite), 51 = 3 × 17 (composite).
  3. Final Answer:

    29 is prime → Option A.
  4. Quick Check:

    No prime ≤5 divides 29, so 29 is prime. ✅
Hint: Test divisibility by small primes (2,3,5) up to √n.
Common Mistakes: Assuming odd → prime without checking divisors.
2. Which of the following is a composite number?
easy
A. 17
B. 23
C. 25
D. 19

Solution

  1. Step 1: Strategy:

    Composite numbers have more than two positive divisors; check for small factor patterns.
  2. Step 2: Tests:

    17 → prime. 23 → prime. 25 → 5 × 5 → composite. 19 → prime.
  3. Final Answer:

    25 is composite → Option C.
  4. Quick Check:

    25 ÷ 5 = 5 confirms composite (divisors: 1,5,25). ✅
Hint: Spot squares of primes (e.g., 25, 49) - they are composite.
Common Mistakes: Treating square numbers as prime.
3. Which of the following numbers is even and composite?
easy
A. 13
B. 28
C. 17
D. 31

Solution

  1. Step 1: Strategy:

    Even numbers end with 0,2,4,6,8; among evens, check if the number has divisors other than 1 and itself (i.e., not 2).
  2. Step 2: Tests:

    13 → odd prime. 28 → ends with 8 (even); 28 = 4 × 7 (has divisors other than 1 and itself) → composite. 17, 31 → odd primes.
  3. Final Answer:

    28 is even and composite → Option B.
  4. Quick Check:

    28 ÷ 4 = 7 and last digit 8 confirm even composite. ✅
Hint: All even numbers > 2 are composite unless the number is 2.
Common Mistakes: Forgetting that 2 is the only even prime.
4. Which of the following numbers is neither prime nor composite?
medium
A. 1
B. 2
C. 3
D. 4

Solution

  1. Step 1: Definitions:

    Prime: integer > 1 with exactly two positive divisors (1 and itself). Composite: integer > 1 with more than two positive divisors. Numbers ≤ 1 are special cases.
  2. Step 2: Tests:

    1 → has exactly one positive divisor (1) → by standard convention, neither prime nor composite. 2 → prime. 3 → prime. 4 → composite (2 × 2).
  3. Final Answer:

    1 is neither prime nor composite → Option A.
  4. Quick Check:

    Recall standard convention: 1 is classified as neither prime nor composite. ✅
Hint: Remember: 1 is neither; 2 is the only even prime.
Common Mistakes: Misclassifying 1 as prime or composite.
5. Which of the following numbers has exactly three positive divisors?
medium
A. 27
B. 16
C. 15
D. 49

Solution

  1. Step 1: Key fact:

    A number has exactly three positive divisors iff it is the square of a prime (p^2), because divisors are {1, p, p^2}.
  2. Step 2: Tests:

    27 = 3^3 (more than 3 divisors). 16 = 2^4 (divisors: 1,2,4,8,16 → 5 divisors). 15 = 3 × 5 (divisors 1,3,5,15 → 4 divisors). 49 = 7^2 → divisors {1,7,49} → exactly 3 divisors.
  3. Final Answer:

    49 → Option D.
  4. Quick Check:

    49 is 7^2; divisors 1, 7, 49 confirm exactly three divisors. ✅
Hint: Look for prime-square form p^2 to get exactly three divisors.
Common Mistakes: Confusing p^2 with higher prime powers (which have more divisors).

Mock Test

Ready for a challenge?

Take a 10-minute AI-powered test with 10 questions (Easy-Medium-Hard mix) and get instant SWOT analysis of your performance!

10 Questions
5 Minutes