Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Name: Braden Rather
- // Program Description: Prime Number Challenge
- // Date: 10-23-14
- #include<iostream>
- #include<string>
- #include<fstream>
- using namespace std;
- int main ()
- {
- int n;
- bool found=true;
- cout << "Enter a number: ";
- cin >> n;
- for (int a=2; a<n; a++)
- {
- if(n%a!=0)
- {
- cout << n;
- }
- else
- }
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement