Prime137

Complete my program (Lab1.c program) such that it prompts the user for an input value in
form of a long int and prints all prime numbers that end with digits 137
between 2 and the user-provided input. Do not modify any lines of code already
written in the program. Also, do not add any other functions, #include
directives, or macros to this program.(Lab1.c program)
#include
#include
#include/* returns true if n is prime, otherwise false. */
bool isPrime(long int n)
{
}/* returns true if n ends with 137, otherwise false. */
bool endsWith137(long int n)
{
}int main(int argc, char* argv[])
{return 0;
}

×
New Download