Nukreipiame Jus į:
https://testallforone.blogspot.co.uk/2013/12/c-program-to-check-number-is-prime-or.html