online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> int main() { int i,j,c=0,n,range=32767; int a[100]; int x=0; scanf("%d",&n); for(i=2;i<=range;i++) { int c=0; for(j=1;j<=i;j++) { if(i%j==0) { c++; } } if(c==2) { a[x]=i; x++; if(x==n) break; } } printf("%d",a[n-1]); 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