Someone on Reddit pointed out that today (Dec 22nd) is Ramanujan’s 129th birthday. One of the commenters further pointed out that 129 is the sum of the first 10 primes, and the smallest number that is the sum of three squares …

# Category: Basic

### Basic, Numbers

## Number guessing game

## by Alan • • 0 Comments

The number guessing game incorporates several simple but important elements of elementary programming and is a good candidate for an introductory programming example.

If you’ve seen any programming course, you’ve probably seen the “Hello World” program. In Python it’s: …

### Basic

## Popular Sorting Algorithms

## by Alan • • 1 Comment

### Basic, Numbers

## Playing in Python with Pickover’s Premise per Pi

## by Alan •

My favourite tweeter is Clifford A. Pickover. His tweets are delightful nuggets of math, physics & more. I have a copy of his fascinating The Physics Book. However, in these tweets, he claims that the string **44899 **…

### Basic, Text

## A Python Dictionary

## by Alan •

This is simply a dictionary of Python keywords, implemented as – of course – a Python dictionary! Dictionaries are key:value pairs. The value can be any object, such as a tuple of strings. The first item in the …

### Basic, Turing Machines

## Dr. Turing’s Automatic Machine

## by Alan •

**Alan Turing** published a ground-breaking paper in 1936, *On computable numbers, with an application to the Entscheidungsproblem* (PDF). It was about an esoteric problem in mathematics, for which he needed a theoretical model of how a mathematician computes with pencil …

### Basic, Numbers

## Binary Search

## by Alan • • 2 Comments

### Basic, Fractals

## Naive Mandelbrot Set

## by Alan • • 0 Comments

This is your basic Mandelbrot Set plotter. Very little effort made to speed it up, except for plotting top & bottom pixels together as they’re mirrored across the x-axis. Later I’ll show you some much faster programs!

The heart of …