Would you please explain in more detail?infact you do not even need to find primes at all.
Search found 11 matches
- Tue Jan 11, 2005 11:01 am
- Forum: Volume 2 (200-299)
- Topic: 294 - Divisors
- Replies: 91
- Views: 39293
- Sun Jan 09, 2005 11:07 am
- Forum: Volume 2 (200-299)
- Topic: 294 - Divisors
- Replies: 91
- Views: 39293
- Tue Jan 04, 2005 10:19 am
- Forum: Volume 2 (200-299)
- Topic: 294 - Divisors
- Replies: 91
- Views: 39293
294:DIVISORS...RUNTIME ERROR...PLEASE HELP!!!!!!!
I got runtime error. Please help me.
I have precalculated prime numbers. Then computed the divisors for n where n =p1^e1* p2^e2* ... *pn^en equals (e1+1)*(e2+1)*...*(en+1).
#include<math.h>
#include<stdio.h>
int Isprime(int I);
int primes[10000]={2};
long double lu;
unsigned long max,sum,j,p,N ...
I have precalculated prime numbers. Then computed the divisors for n where n =p1^e1* p2^e2* ... *pn^en equals (e1+1)*(e2+1)*...*(en+1).
#include<math.h>
#include<stdio.h>
int Isprime(int I);
int primes[10000]={2};
long double lu;
unsigned long max,sum,j,p,N ...
- Sun Jan 02, 2005 10:42 am
- Forum: Volume 6 (600-699)
- Topic: 686 - Goldbach's Conjecture (II)
- Replies: 41
- Views: 27668
- Sat Jan 01, 2005 10:53 am
- Forum: Volume 6 (600-699)
- Topic: 686 - Goldbach's Conjecture (II)
- Replies: 41
- Views: 27668
686:Goldbach's Conjecture (II) WHY WRONG ANSWER?????
I have checked the code several times but cannot find out the error. Could anybody suggest?
Code: Select all
//deleted
- Wed Dec 29, 2004 11:20 am
- Forum: Volume 5 (500-599)
- Topic: 543 - Goldbach's Conjecture
- Replies: 109
- Views: 41186
- Mon Dec 27, 2004 12:00 pm
- Forum: Volume 5 (500-599)
- Topic: 543 - Goldbach's Conjecture
- Replies: 109
- Views: 41186
543
deleted
- Wed Dec 15, 2004 10:11 am
- Forum: Volume 100 (10000-10099)
- Topic: 10023 - Square root
- Replies: 121
- Views: 45377
- Wed Dec 15, 2004 6:59 am
- Forum: Volume 100 (10000-10099)
- Topic: 10023 - Square root
- Replies: 121
- Views: 45377
10023
Can anybody tell me, why WA?
[c]
#include<stdio.h>
#include<math.h>
void main()
{
int n,i;
long double x,y;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%Lf",&y);
x=sqrtl(y);
printf("%.0Lf\n\n",x);
}
}
[/c]
[c]
#include<stdio.h>
#include<math.h>
void main()
{
int n,i;
long double x,y;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%Lf",&y);
x=sqrtl(y);
printf("%.0Lf\n\n",x);
}
}
[/c]
- Thu Oct 14, 2004 11:01 am
- Forum: Volume 7 (700-799)
- Topic: 727 - Equation
- Replies: 156
- Views: 56833
727
Why my program is getting run time error? Is it for stack overflow? How can I handle multiple input? Can anybody help?
- Sat Oct 02, 2004 12:19 pm
- Forum: Other words
- Topic: How to stop displaying wrong statistics?anyone suggest??????
- Replies: 1
- Views: 1064
How to stop displaying wrong statistics?anyone suggest??????
I have solved many problems. But my statistics shows only few solved problems from today. How can I soved the problem? Can anybody suggest?