[Solved] Prime number Logic, n/2 condition in a loop
Although this is C program. But prime number logic will be same for C and Java both Prime number Each natural number that is divisible only by 1 and itself is prime. Also, 2 is the first prime number. For example, we want to test that number 100 is a prime number or not. we … Read more