top | item 3667469

Numbers API - An API for interesting facts about numbers

74 points| divad12 | 14 years ago |numbersapi.com | reply

29 comments

order
[+] adharmad|14 years ago|reply
http://numbersapi.com/1729/math "1729 is a plain old number."

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."

[+] divad12|14 years ago|reply
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.

[+] spicyj|14 years ago|reply
See http://numbersapi.com/1729:

> 1729 is the smallest number representable in two different ways as a sum of two positive cubes, as Ramanujan stated on the spot.

[+] Scriptor|14 years ago|reply
It looks like they've fixed the one for 1729.
[+] theFco|14 years ago|reply
perhaps it is a pun on Hardy, who thought it was an uninteresting number?
[+] michaelochurch|14 years ago|reply
We will finally be able to answer humanity's most pressing question: what is the smallest uninteresting positive integer?
[+] vyrotek|14 years ago|reply
what is the smallest uninteresting positive integer?

Doesn't discovering that unique number instantly make it interesting? :)

[+] rflrob|14 years ago|reply
It's an API, so I have this code running now:

    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)
[+] yahelc|14 years ago|reply
223.

EDIT: 219 is definitely smaller than 223.

[+] searke|14 years ago|reply
You can get a lot of number facts using Wolfram|Alpha and its API

http://www.wolframalpha.com/input/?i=1729

[+] divad12|14 years ago|reply
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).
[+] freditup|14 years ago|reply
Don't forget a crossdomain.xml file!