CodeChef submission 81289 (C++ 4.0.0-8) plaintext list. Status: TLE, problem PRIME1, contest . By triplem (Stephen Merriman), 2009-08-27 03:05:27.
#include<stdio.h> int check(long a) { for(long i=2;i<=(a/2);i++) { if(a%i==0) return 0; } return 1; } int main() { int t=0; long m ,n , temp; while(t) { for( temp=m;temp<=n;temp++) { if(check(temp) && temp >1) { } } t--; } return 0; }
Comments

