flâneur — a map of the web's best reading

johnhw.github.io/umap_primes/index.md.html

johnhw.github.io · 2,454 words · saved by 1 readers

This is the first million integers, represented as binary vectors indicating their prime factors, and laid out using the UMAP dimensionality reduction algorithm by Leland McInnes. Each integer is represented in a high-dimensional space, and gets squished down to 2D so that numbers with similar prime factorisations are closer together than those with dissimilar factorisations.

# What do numbers look like? ![One million integers embedded into 2D space with UMAP](imgs/primes_umap_1e6_contrast_enhanced.png) ## A view of a million integers This is the first million integers, represented as binary vectors indicating their prime factors, and laid out using the [UMAP dimensionality reduction algorithm](https://github.com/lmcinnes/umap) by Leland McInnes. Each integer is represented in a high-dimensional space, and gets squished down to 2D so that numbers with similar prime factorisations are closer together than those with dissimilar factorisations. A very pretty structure

Explore this link on the map →

related reading