Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as C by Sylar ( 13 years ago )
#include <stdio.h>
#include <stdlib.h>
void main(void)
{
int x,y=1,k=0,i=3,j=1;
printf("Enter The Position : ");
scanf("%d",&x);
if(x==1) printf("The Number Is 2");
else
{
for(i;i>0;i+=2,k=0)
{
for(j=1;j<i;j++)
{
if(i%j==0) k++;
if(k>1) break;
}
if(k==1) y++;
else continue;
if(y==x) {printf("The Number Is %d",i); break;}
}
}
return 0;
}
Revise this Paste
Parent: 60824