2081 6

C Programming20815 marksNumerical: prime numbers programDecision Making and Looping

Write a program to display first 50 prime numbers.

Write a program to display first 50 prime numbers. [5]

  • Required output: first 50 prime numbers - Marks: 5 A prime number is an integer greater than 1 whose only positive divisors are 1 and itself. To generate the first 50 primes, we test successive integers starting from 2, counting each prime until 50 are found. Note: an inner loop written as i < ...
Up nextWrite a program to display the following series up to 25 terms but do not print the 7th te