Finding a prime which looks like Salvador Dali.

Prime numbers are ubiquitous. Prime numbers are fun. Prime numbers have many uses.

But the most important use of prime numners is in art. If you haven't read prime numbers which look like giraffe, you should read it, but today we are doing something more fun. Finding prime numbers which look like famous artists.

We will use Salvador Dali, my favorite surrealist, as the guinea pig.

We will use the below striking image of Dali as our source image.

This is too large (on my machine) to parse as a number, so we will resize it to 24x24 grayscale image. It looks like this

Much smaller but still recognizable as Salvador. Lets get to work.