[ create a new paste ] login | about

Link: http://codepad.org/wrAZKVRs    [ raw code | output | fork ]

C, pasted on Dec 8:
#include <stdio.h>
int Sushu(int a)
{
    int i,j;
    for(i=2;i<a;i++)
        if(a%i==0)
            return 0;
    return 1;
}
int main(void)
{
    int a,b,c=0;
    int i=1;
    for(a=367; ;a +=i*186)
    {
        if(Sushu(a)==1)
            c++;
        if(c==151)
            break;
    }
    printf("%d",a);
    return 0;
}


Output:
1
92809


Create a new paste based on this one


Comments: