Blog

A blog of Python-related topics and code.

Hidden images in spectrograms

It is well-known that Aphex Twin incorporated images in the spectrogram of the final few seconds of a couple of tracks from the Windowlicker EP.

Do consecutive primes avoid sharing the same last digit?

An article by Oliver and Soundararajan that has got a lot of attention in the last few days notes that there is a curious pattern in the distribution of the final digits of consecutive prime numbers. Prime numbers larger than 5 must end in 1, 3, 7 or 9 (else they would be divisible by either 2 or 5), and it seems that a prime ending in any of these is less likely to be followed by another prime ending in the same digit.

Computer generated contemporary art

Just a quick selection of images randomly-generated by the following 10 lines or so of Python.

Cloud images using the diamond-square algorithm

The diamond-square algorithm is a popular method for generating images which resemble terrain, clouds or plasma. Its description on Wikipedia is as good as any and will not be repeated here.

Is the frequency of intense tornadoes increasing?

Spoiler: I don't know and nor does anyone else.