Thanks for pointing that out. The ticker came from some work I did while interning at Khan Academy, and was not originally meant for negative numbers. If I get some time, I may make it into a jQuery plugin and make it work for more cases and be configurable.
Edit: on the other hand, in the math category "219 is the smallest number that can be represented as a sum of four positive cubes in two different ways."
for i in xrange(10000):
print i
trivia = requests.get('http://numbersapi.com/%d' % i).text
math = requests.get('http://numbersapi.com/%d/math' % i).text
if 'boring' in math and ('plain' in trivia or 'boring' in trivia):
print math, trivia
break
time.sleep(2)
http://numbersapi.com/1321/trivia has given me both "1321 is a most unremarkable number" and "1321 is an uninteresting number", to give an upper bound. ;-)
Also the smallest perfect number:
http://numbersapi.com/6/math
"6 is the smallest number of distinct isosceles right triangles that will tile an isosceles right triangle."
Ha, good catch. http://numbersapi.com/1729 (the trivia version) gives the Ramanujan fact, while we have multiple math facts for 6 (refresh a few times to get "smallest perfect number").
We're still working to build our database of facts. Feel free to send suggestions to numbersapi at google mail, and we may add a feature for user-submitted facts.
Wolfram Alpha is great for mathematical properties of numbers, while we have trivia facts and are looking to gather more (eg. from world records, numbers in nature, statistics, almanacs, news).
31 comments
[ 6.6 ms ] story [ 68.8 ms ] threadWe welcome any feedback and are willing to answer any questions. Thanks!
EDIT: 219 is definitely smaller than 223.
Edit: on the other hand, in the math category "219 is the smallest number that can be represented as a sum of four positive cubes in two different ways."
That may be a stretch, but it qualifies as something interesting.
Doesn't discovering that unique number instantly make it interesting? :)
Feel free to send entry suggestions to numbersapi at google mail. We may add a feature for this soon.
Can't recognize Hardy-Ramanujan number?
Also the smallest perfect number: http://numbersapi.com/6/math "6 is the smallest number of distinct isosceles right triangles that will tile an isosceles right triangle."
> 1729 is the smallest number representable in two different ways as a sum of two positive cubes, as Ramanujan stated on the spot.
We're still working to build our database of facts. Feel free to send suggestions to numbersapi at google mail, and we may add a feature for user-submitted facts.
http://www.wolframalpha.com/input/?i=1729