Public feed #600831

Mine

public text v1 · immutable
Raw Edit
·published 2007-07-03 03:37 UTC
rendered paste body
#include<stdio.h>
#include<conio.h>
int main(void)
{
              int i,j;
              scanf("%ld",&i);
              for(j=2;j<=i/2;j++)
              {
                   if(i%j==0)
                   {          printf("Not a prime");break;}
                   if(j==i/2)
                             printf("Prime");
              }
              getch();
}