Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
minimaxir
on Aug 5, 2013
|
parent
|
context
|
favorite
| on:
Sum of 1 to 1000000000 in different programming la...
Fun fact: in R,
sum(1:1E07)
will throw a warning; you have to use
sum(as.numeric(1:1E07))
instead, which will indeed give the correct answer.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: