# Ones vs Zeros in the Binary Primes

What does the graph look like when you convert each prime to binary and plot the ones versus the zeros?

What does the graph look like when you convert each prime to binary and plot the ones versus the zeros?

Today I became curious about the relative frequencies of the digits that appear in prime numbers (in base 10).

Naturally, I wrote a little program to show the answer - digit-freq2:

**Questions:**

- What is the number of primes per n-slice of the decimal part of pi?
- What does the graph look like?
- Are there many overlapping primes (i.e. start at the same position in the slice)?

Today I decided to more deeply investigate this curious math thing I discovered (for myself) - Plotting the Fibonacci numbers by Prime numbers each by a given modulo. "Fibo-what? Mod-what? So what!", you say. *:p*

tldr code: slice-seq and slice-seq.R

The prime number sequence fascinates me. I am not sure why but exposing properties in it is exciting. Even if they are mundane and "obvious to everyone else", the fact that I can answer questions visually, sometimes thrills me.

tl;dr: gaps-of-gaps