Search found 1 match

by adhoc17
Sat May 31, 2008 9:42 am
Forum: Volume 100 (10000-10099)
Topic: 10006 - Carmichael Numbers
Replies: 66
Views: 29677

Re: 10006 - Carmichael Numbers

i m getting wrong answer in this problem.
it seems to work correctly for all inputs including the 15 carmichael numbers in the range specified.
could anyone plz help me?
my code follows:




#include<iostream>
#include<cmath>
using namespace std;
int isprime(long n)
{ int i;
if(n==1||n==2)
return ...

Go to advanced search