Didn't get it this code

2147483618 is a non-prime number…
But in this video his program shows that this number is prime.
How is this possible??
Please give me the correct solution…

hello @ishank01

the approach taught in the video is correct, pls share ur code with me i will check

I didn’t said his approach is wrong but the output in end is wrong

he has taken 2147483618 as an example but it shows that the number is prime

in the video , he didnt show the output of the above input.

u can check above code that i shared,its working fine

Ok thanks, I got it…