All prime numbers between 20 and 40 are 23,29,31,37.
Number of data values =4
Mean =Sum of all data values or observationsNumber of data values or observations
⇒Mean=23+29+31+374
=1204=30
Hence, the mean of all prime numbers in between 20 and 40 is 30.