Docstoc

13

Document Sample
13 Powered By Docstoc
					#include <stdio.h> int main(){ freopen("numere.in", "r", stdin); freopen("prime.out","w", stdout); int n,k,i; scanf("%d", &k); for(int j=1;j<=k;j++){ scanf("%d", &n); for(i=2;i<=n/2;i++) if(n%i==0) break; if(i==n/2+1) printf("%d ", n); } return 0; }


				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:8
posted:11/1/2008
language:
pages:1
lupu petru lupu petru
About