I remember reading this in a book somewhere. The answers to the riddles in that book were insane. I think there was a discalimer saying that the the guy trying to solve the riddle was allowed to ask yes-or-no questions. I remember one of the riddles was something like, "there's a flash of light...
The jeweler only lost $30 here, because from the $100 he borrowed from the baker, he had $70 of this still left over from the transaction with the customer because he had to give $30 of it away as change. So he only had to dig up 30 extra dollars to repay the baker.
So the jeweler lost the ring...
IMO predictable humour can be pretty damn funny. For example I would find a video clip of a penguin sliding backward very slowly toward the edge of a cliff hilarious, for the very reason that I know exactly what is to happen, but the penguin doesn't.
In most cases though I find dry and witty...
I loved it when I read one of Feynman's biographies and discovered that his IQ was 'only' 124, because it more or less confirmed my suspicion that the concept of IQ is for the most part BS. The fact is that Feynman's intelligence probably didn't function in the terms tested by an IQ test and...
And while you're at learning all that stuff, keep learning number theory and keep discovering new ways to manipulate numbers and operators... you'll learn helpful little tricks that will improve your ability to manipulate algebraic expressions and so on.
Thank you very much chroot. You've allowed me to complete my program.
I got the idea when I was trying to solve the following maths problem that was once set in an Oxbridge interview for prospective maths students:
Of the numbers 1, 2, 3, ..., 6000, how many are not multiples of 2, 3 or 5...
Thank you.
This is what I have so far:
biglist = []
for i in range (1,6001):
biglist.append(i)
This puts the numbers 1 to 6000 in a list as you know.
The modulo operator will definitely come in handy. My problem is with syntax (I'm a newbie). How would I write something to the...