urgent help in a programming homework question writing a cod

urgent help in a programming homework question writing a code in C language with the description in the picture attached

Description A positive integer greater than 1 is called a prime if it is only divisible by itself and by 1. Write a program that prompts the user to enter an integer between 2 and 1000,000 and prints out whether it is a prime; in case the number is not a prime, it also prints the factorization of the number as a product of primes in ascending order. Input-Output Example . Enter a positive integer between 2 and 1000000: [11] The number 11 is a prime. . Enter a positive integer between 2 and 1000000: [24] The number 24 is not a prime. 24=2x2x2x3

Solution

if f==1

then

else

printf(\"factorial is not required\")


Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site