[Practice][Functions] Generate all the prime numbers between two given numbers
Submit solution
C
Points:
10
Time limit:
0.5s
Memory limit:
2M
Author:
Problem type
Allowed languages
Problem Definition
Write a C Program to print all the prime numbers between two given numbers. generatePrimes function should be used to generate prime numbers and isPrime function should check the prime status for each number.
Test Data
Sample Input 1
5 100
Sample Output 1
Prime numbers between 5 and 100 are: 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97
Comments