Page 1 of 1
Problem 087
Posted: Sun Jan 18, 2009 1:57 am
by Phibonacci
my method is have three place values x, y, z. x^2 + y^3 + z^4.
I increment z by primes until max then increment y and start over with the z's. Etc....
Similar to counting 001, 002, ... , 009, 010, 011, ...
I can not figure out why this is producing errors. I keep getting 1139575??
Re: Problem 087
Posted: Sun Jan 18, 2009 3:06 am
by Tommy137
I pm'ed you.
Re: Problem 087
Posted: Wed Apr 01, 2009 4:14 pm
by giorgiolx
hi,
can you send me the same mp?

Re: Problem 087
Posted: Thu Aug 27, 2009 12:12 pm
by MaJJ
I'm getting the same number (1139575), although I have different method. Any help?
Re: Problem 087
Posted: Thu Aug 27, 2009 12:17 pm
by stijn263
Are you sure there are 1139575 different numbers below fifty million with the property stated in
Problem 87 (
View Problem)?
Re: Problem 087
Posted: Thu Aug 27, 2009 12:36 pm
by MaJJ
Hmm, are you suggesting different primes could lead to the same sums? Maybe that's the problem

Re: Problem 087
Posted: Fri Jan 13, 2017 4:58 pm
by Alex-82w4
Phibonacci wrote: Sun Jan 18, 2009 1:57 am
my method is have three place values x, y, z. x^2 + y^3 + z^4.
I increment z by primes until max then increment y and start over with the z's. Etc....
Similar to counting 001, 002, ... , 009, 010, 011, ...
I can not figure out why this is producing errors. I keep getting 1139575??
I get the same result. How do I verify that this result is correct?
Re: Problem 087
Posted: Fri Jan 13, 2017 7:35 pm
by v6ph1
One simple example: 5^4 + 2^3 + 2^2 = 3^4 + 3^3 + 23^2
Re: Problem 087
Posted: Fri Jan 13, 2017 8:09 pm
by Alex-82w4
Thank you very much !
Re: Problem 087
Posted: Sat Jul 15, 2023 1:10 pm
by laogui
No problem with the correct answer, but execution time was an issue - 7071 squares x 368 cubes x 84 fourth power - 218 million iterations took a long long time in python. Moreover I couldn't work out why the execution time increased as it progressed; must be the overhead of the growing list object. Increased for each of the fourth powers from 13 seconds 1st, up to 360, then dropped in the last 4 iterations
Re: Problem 087
Posted: Sun Jul 16, 2023 10:05 am
by RobertStanforth
laogui wrote: Sat Jul 15, 2023 1:10 pm
No problem with the correct answer, but execution time was an issue [...]
Welcome to Project Euler!
Note that this forum is only for clarifications of the problem statements. Discussion of methods and their runtimes should take place in the problem solution threads on the main site, e.g.
https://projecteuler.net/thread=87 for this problem. Could you please move your post there. Thanks!