Re: Euler Top 1000
- From: Albert van der Horst <albert@xxxxxxxxxxxxxxxxxx>
- Date: 04 Jun 2008 21:35:16 GMT
In article <97123519173559@xxxxxxxxxxxxxx>, Marcel Hendrix <mhx@xxxxxx> wrote:
Albert van der Horst <albert@xxxxxxxxxxxxxxxxxx> writes Re: Euler Top 1000
[..]
I have not yet stopped (32 now). 80 is the score to hit,
I'm not sure whether I have the stamina. There are certainly
some of the 50 problems I can handle. Some may look uninteresting
(evaluating poker hands) but it remains a challenge to program that
in a clean way.
I am counting on you to boost Forth's ranking :-)
The score for a language is calculated as
(average solutions/user) * log (number of users). So the best
investment of time is too help and stimulate the currently listed
Forthers with low scores.
Interesting, I was wondering how a score was calculated.
<SNIP>
Some Top 1000 scorers are using pencil and paper.
Not for problem 196 and all other problems where counting
primes or sums of primes are involved. That would require a
phenomenal break through in mathematics.
I *was* very happy indeed with my 64 bit lina, though. Saves
a lot of double precision stuff.
That could help for a few problems, but I think some are specifically
designed to make this easy way out impossible.
You didn't yet solve Problems 69, 70 and 72, and 53.
The puzzles 55, 56, 57, 65, 78, 80 are also fun (in this respect).
69 : more appropriate string of digits, no bignums
70 : and other totient stuff, pretty easy (knowing the math)
72 : idem
53 : You need not calculate a number to know that it exceeds
a million.
My guess is that none of these need even double precision on
a 32-bits Forth. We'll see.
These are the nice simple problems I do when I get frustrated.
The problem of summing the digits of a^b is the worst problem
to do without a bignum library. There is also this list of
numbers of the form 2898298^1819891 finding the largest one.
There may be an interesting trick to do those in fixed point.
Doing it with floating point and logarithms is trivial and
boring.
We'll see.
-marcel
Groetjes Albert
--
--
Albert van der Horst, UTRECHT,THE NETHERLANDS
Economic growth -- like all pyramid schemes -- ultimately falters.
albert@spe&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst
.
- References:
- Re: Euler Top 1000
- From: Albert van der Horst
- Re: Euler Top 1000
- From: Marcel Hendrix
- Re: Euler Top 1000
- Prev by Date: Re: Compare permutations
- Next by Date: Re: frustration with starting forth
- Previous by thread: Re: Euler Top 1000
- Next by thread: Euler 53 Hoezo bignum? (spoiler) was Re: Euler Top 1000
- Index(es):
Relevant Pages
|
Loading