please, I need help with this”The efficient prime number generation”. using C programming.
The program should print out all prime numbers that are greater than or equal to lowerBound and less than or equal to upperBound. Note that lowerBound and upperBound are set via the command line (which is a process we will discuss later, such that running the code takes the form ./primes lower upper). The prime numbers should be printed in ascending order, with one number on each line. No other output should be generated. The number 1 should not be considered prime for this project.
As an example, for lowerBound = 1 and upperBound = 7, the expected output is:
2
3
5
7
After you have written your code, you will have to compile it using gcc. Should you decide to use the math library, be sure to link the library at the end by adding –lm at the end of gcc.
// the method:
generatePrimes(int lowerBound, int upperBound){
}