online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> #include <math.h> using namespace std; int main() { unsigned long int n, d; int prim=1; cout<<"n=? "; cin>>n; for(d=2; d<=sqrt(n); d++) if(n%d==0) prim=0; if(prim==1) cout<<n<<" e prim"<<endl; else cout<<n<<" NU e prim"<<endl; return 0; }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue