Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool tajemniczaFunkcja(int liczba)
- {
- if (liczba <= 1)
- return false;
- if (liczba <= 3)
- return true;
- if (liczba%2 == 0)
- return false;
- for (int i=3; i*i<=liczba; i+=2)
- {
- if (liczba%i == 0)
- return false;
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement