Hi!
Any idea, what is wrong with this code?
#include <stdio.h>
#include <limits.h>
#include <math.h>
#include <stdlib.h>
unsigned int digits(unsigned int n, unsigned int base)
{
return (unsigned int)(floor((log10(2*M_PI*n)/2+n*(log10(n)-log10(M_E)))/log10(base)+1e-9)+1);
}
unsigned int legendre ...
Search found 3 matches
- Sun Dec 20, 2009 12:45 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10061 - How many zero's and how many digits ?
- Replies: 43
- Views: 29263
- Sun Oct 26, 2008 7:44 pm
- Forum: Volume 115 (11500-11599)
- Topic: 11538 - Chess Queen
- Replies: 9
- Views: 3328
Re: 11538 - Chess Queen
Hello!
Use unsigned long long int.
Use unsigned long long int.

- Wed Aug 06, 2008 9:32 pm
- Forum: Volume 114 (11400-11499)
- Topic: 11462 - Age Sort
- Replies: 49
- Views: 28024
Re: 11462 - Ages Sort
Hello!
Perhaps may help to you this sentence:
Perhaps may help to you this sentence:
You know that no individual in that country lives for 100 or more years.