Coding-Ninjas-Competitive-Programming
Coding-Ninjas-Competitive-Programming copied to clipboard
solved an error and formatted output as desired.
On submitted it at coding ninjas, the output format was different, so modified the output format a bit . Also, the number '1' is neither prime nor composite, but this point was missing in the code due to which it gave wrong answer in test cases. Included that too.