Value of n must be always number
Click on generate button to create the array.



  • Function in Python
  •     def print_first_N_primes(N):
  •         for i in range(2, N + 1, 1):
  •             k = 0
  •             for j in range(2, i//2 + 1):
  •                 if (i%j == 0):
  •                     k = k+1
  •             if (k <= 0):
  •                 print(i)



1. The sum of first five prime numbers is:
    11
    18
    26
    28

2. Which one of the following is not a prime number?
    31
    61
    71
    91

3. How many prime numbers are less than 50 ?
    16
    15
    14
    18