Question: Write a function in C language named PrimeChecker that takes an integer n as its parameter and returns 1 to the main function if it
Write a function in language named PrimeChecker that takes an integer as its parameter and returns to the main function if it is a prime number and otherwise. The prototype of the function should be
int PrimeChecker ;
a Now write the main function takes an integer as input and prints the Fibonacci series consisting of prime numbers upto nth term, using the function PrimeChecker.
Sample inputoutput
tableInputOutput
b Write another main function that uses PrimeChecker to print the prime factors of an input integer
Sample inputoutput
tableInputOutput
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
