Topics /

Math & Algorithms

The most popular blog posts about math & algorithms on Hacker News. 163 posts.

2021
91

Does having prime neighbors make you more composite?

Babylonian accountants and land surveyors did their arithmetic in base 60, presumably because sexagesimal num­bers help with wrangling fractions. When you organize things in groups of 60, you can divide them into halves, thirds, fourths, fifths, sixths, tenths, twelfths, fifteenths, twentieths, thirtieths, and…

102

Donut.c Without a Math Library

My little donut.c has been making the rounds again, after being featured in a couple YouTube videos (e.g., Lex Fridman and Joma Tech ). If I had known how much attention this code would get over the years, I would have spent more time on it.

114

A Tale of Java Hash Tables

The intended audience for this article is undergrad students who already have a good grasp of Java, or seasoned Java developers who would like to explore an in-depth analysis of various hash table implementations that use Open Addressing. The reader should be familiar with Java generics, collections, basic data…