Introducing UIH: Math + Unicode, Happy Together

As a math person, you’re often faced with the task of communicating about math. Unfortunately, most modern means of communication, be it email, the web or instant messages, aren’t really suited to typing math. Fortunately, however, many of these means do allow the use of Unicode, and Unicode …

more ...




Sieve of Erathostenes

I challenge you to come up with a shorter/simpler piece of code that executes the Sieve of Erathostenes than this Python snippet:

N = 1000
candidates = range(2, N+1)
i = 0

while i < len(candidates):
    candidates = [n for n in candidates
        if n % candidates[i] != 0
        or n <= candidates …
more ...