AI InterviewSearch…Search problems, topics, or pages…Ctrl KGet started
Mediumprimes

~60s

Average of the primes between 30 and 50

What is the average of all prime numbers between 30 and 50?

Show the answer and the worked solution

Correct answer: C.

39.8

Worked solution

  1. The primes between 30 and 50 are 31, 37, 41, 43 and 47.
  2. Sum = 199, and there are 5 of them.
  3. Average = 199 ÷ 5 = 39.8.

Answer: 39.8.

The idea

Primes are not evenly spaced, so the midpoint shortcut fails — the list must be written out and added. The risk here is missing 43 or wrongly including 39 or 49.

Shortcut. Measure from 40: −9, −3, +1, +3, +7 sum to −1, so the average is 40 − 1/5 = 39.8.

Common trap. "40.8" — it looks right because the primes cluster around 40, but their deviations from 40 sum to −1, so the average sits just below 40, not above.

Average of the primes between 30 and 50 — Aptitude Question

Average of the primes between 30 and 50: What is the average of all prime numbers between 30 and 50? Answer and worked solution on CodeKairo.

Question

What is the average of all prime numbers between 30 and 50?

Options

  1. 37.8
  2. 38.8
  3. 39.8
  4. 40.8
Show the answer and the worked solution

Correct answer: C. 39.8

Worked solution

  1. The primes between 30 and 50 are 31, 37, 41, 43 and 47.
  2. Sum = 199, and there are 5 of them.
  3. Average = 199 ÷ 5 = 39.8.

Answer: 39.8.

The idea

Primes are not evenly spaced, so the midpoint shortcut fails — the list must be written out and added. The risk here is missing 43 or wrongly including 39 or 49.

Shortcut. Measure from 40: −9, −3, +1, +3, +7 sum to −1, so the average is 40 − 1/5 = 39.8.

Common trap. "40.8" — it looks right because the primes cluster around 40, but their deviations from 40 sum to −1, so the average sits just below 40, not above.

All Averages questions · placement mock tests