How many prime numbers are there from 1to30? Write all the prime numbers.
From 1to30 there are 10 prime numbers, which are 2,3,5,7,11,13,17,19,23and29