There are prime numbers between 1 and 30.
The prime numbers between 1 and 40 are 2, 3, 5, 7, 11, 13, 17, 19, 23, 29. Hence, there are 10 prime numbers that lie between 1 and 40.
The mean of prime numbers between 20 and 30 is: