Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- bool prost(int n)
- {
- for (int j = 2; j <= n / 2; j++)
- if (!(n % j)) return false;
- return true;
- }
- int main()
- {
- for (int i = 65; i < 90; i++)
- if (prost(i)) cout << (char)i << endl;
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement