; 13
Documents
Resources
Learning Center
Upload
Plans & pricing Sign in
Sign Out
Your Federal Quarterly Tax Payments are due April 15th Get Help Now >>

13

VIEWS: 8 PAGES: 1

  • pg 1
									#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; }


								
To top