Question: How to write a C program which reads integers > 1 from standard input until it reaches end-of-input. -The program prints the integers read which
How to write a C program which reads integers > 1 from standard input until it reaches end-of-input.
-The program prints the integers read which are not divisible by any other of the integers read.
-So it should not print an integer if another integer that has already been read is a factor of that number.
-The program's input is asumed to only contain positive integers ( one per line)
-Can assume that all integers are > 1.
-Can assume at most 1000 integers will be read before end-of-input is reached.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
