Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kelnos
on Sept 6, 2019
|
parent
|
context
|
favorite
| on:
42 is found to be the sum of three cubes
DDG doesn't handle it correctly either (gives the same very-large answer as Google). I assume there's some sort of integer overflow going on somewhere. Wolfram Alpha does ok, though:
https://www.wolframalpha.com/input/?i=%28%28-805387388120759...
FreeFull
on Sept 6, 2019
[–]
Google and Duckduckgo use floating point rather than arbitrary precision integers. Wolfram Alpha's solver is significantly more advanced (including arbitrary precision for integers and floating point numbers)
apaprocki
on Sept 6, 2019
|
parent
[–]
I’m actually surprised someone at Google hasn’t switched to BigInt yet in JS if the browser supports it? Googlers, front page OKR time! :)
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: