Search found 1 match

by Toufique
Thu Mar 19, 2009 12:15 am
Forum: Volume 4 (400-499)
Topic: 406 - Prime Cuts
Replies: 187
Views: 25243

prime cuts- 406 getting presentation error

I am getting presentation error.But can't understand why.please help me out. #include<stdio.h> #include<math.h> int main(void) { int a[1001]; int i,j,n,k,c,m,q,r; while(scanf("%d%d",&n,&c)==2) { k=0; a[0]=0; a[1]=1; for(i=2;i<=n;i++) { a =1; } for(i=2;i<=sqrt(n);i++) { if(a ==0) { continue; } for(j=...

Go to advanced search