Guest User

Untitled

a guest
Jun 25th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.15 KB | None | 0 0
  1. int main ()
  2. {
  3.   int result=2;
  4.   for (int n=2; n<=maxnum; n++)
  5.     {
  6.     if (result%n!=0)
  7.         {
  8.             result++;
  9.             n=2;
  10.             continue;
  11.         }
  12.     }
  13.   return 0;
  14. }
Add Comment
Please, Sign In to add comment