Search found 1 match

by wasir_cse
Sun Jul 19, 2009 2:29 pm
Forum: Volume 114 (11400-11499)
Topic: 11466 - Largest Prime Divisor
Replies: 29
Views: 21566

Re: 11466 - Largest Prime Divisor

// Why i got "RE" . Any one can help me please. //




#include<stdio.h>
#include<math.h>
#define N 10000000
_int64 a[N];
void seive()
{
_int64 i,j,s;
a[0]=0;a[1]=0;a[2]=1;

for(i=3;i<N;i=i+2)
{
a =1;a[i+1]=0;
}
s=long(sqrt(N));
for(i=3;i<=s;i=i+2)
if(a )
{
for(j=i*i;j<N;j+=i)
a[j]=0 ...

Go to advanced search