frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Right-Truncatable Prime Counter

https://github.com/EbodShojaei/Right-Truncatable-Primes
9•rainmans•1y ago

Comments

throwawaymaths•1y ago
Curious about base 2. Obviously if you hit a 0 it's immediately not prime, but maybe adjust the rules so:

- you drill through as many 0's on the right.

- you finish on 1.

3, 5, 7, 11, 13, 15, 17 are all right truncatable, 19 is the first non-truncatable prime in this scheme.

nh23423fefe•1y ago
i dont think smaller radixes make the problem more interesting. the problem is interesting because base 10 has a large branching factor
throwawaymaths•1y ago
I think in the base2 reformulation I propose we do not know for certain if the list of numbers terminates, as all Fermat primes are in the set and we don't know if there are infinitely many Fermat primes.

For base-10 and the original rules the set is provably closed.

"Drilling through zeros" makes the branching unbounded.

jinwoo68•1y ago
There's a Project Euler problem for finding truncatable prime numbers, from both left and right: https://projecteuler.net/problem=37
thechao•1y ago
Just in case any else is wondering: there are only 83 right-truncatable primes (RTP) and that is it. There's two constraints that let you see this "immediately":

1. An RTP must start with {2,3,5,7,9}; and,

2. An RTP must end with {1,3,7,9}.

So, let's take the largest RTP (73939133) and try to "extend" it: there are only four possible extensions: 73939133[1], 73939133[3], 73939133[7], 73939133[9]. None of these are prime. This holds for the other 8-digit RTPs. Therefore, there is no extension to a 9-or-longer RTP. Thus, the list is exhaustive.

Whistle: Speech to Text in 16.9 MB

https://cactuscompute.com/blog/whistle
650•gmays•12h ago•138 comments

Reducing undefined behavior in the C language

https://lwn.net/Articles/1095811/
62•signa11•3h ago•35 comments

Keyboard differences between Windows and Macs

https://unsung.aresluna.org/deeper-dive-keyboard-differences-between-windows-and-macs/
46•sohkamyung•2h ago•34 comments

Theranos.world

https://www.theranos.world/
359•kbyatnal•11h ago•128 comments

Man discovers his parents' coffee machine used 1TB of data in 10 days

https://www.dexerto.com/entertainment/man-discovers-his-parents-coffee-machine-used-1tb-of-data-i...
536•ck2•1d ago•333 comments

I hired an illustrator to draw my house. Now it's my Home Assistant dashboard

https://antonfrolov.substack.com/p/i-hired-an-illustrator-to-draw-my
496•soheilpro•2d ago•88 comments

Yes, and

https://htmx.org/essays/yes-and/
294•Michelangelo11•19h ago•83 comments

Why isn't the industry freaking out about DeepSeek 4.1 Flash?

https://www.dgt.is/blog/2026-10-07-deepseek-freek-out/
521•jonotime•1d ago•435 comments

ADHD as a circadian rhythm disorder: evidence and implications for chronotherapy (2025)

https://www.frontiersin.org/journals/psychiatry/articles/10.3389/fpsyt.2025.1697900/full
231•bookofjoe•8h ago•143 comments

The value of not getting to the point (2015)

https://ken.arneson.name/2015/11/the-value-of-not-getting-to-the-point/
140•NaOH•10h ago•46 comments

AI-ready biological data: $1.8B global commitment

https://biohub.org/news/virtual-biology-initiative-expansion/
98•ray__•8h ago•14 comments

ETH-68: Ethernet Audio Interface for Linux

https://naturalsystems.io/eth68
123•chabad360•1d ago•72 comments

Ask HN: What do you run on a $5 VPS that's worth keeping online 24/7?

162•mariocesar•2d ago•259 comments

Beauty in DVD Menus

https://vale.rocks/posts/dvd-menus
284•speckx•15h ago•153 comments

Bevy 0.20

https://bevy.org/news/bevy-0-20/
112•Philpax•6h ago•17 comments

Show HN: Making a flexible "neon" t-shirt with LED filaments

http://scottbezek.blogspot.com/2026/10/making-flexible-neon-t-shirt-with-leds.html
138•scottbez1•12h ago•27 comments

DuckDB Ducklake

https://github.com/duckdb/ducklake
149•saikatsg•1d ago•20 comments

Scaling and benchmarking a critical message bus using a new indexing strategy

https://blog.janestreet.com/scaling-and-benchmarking-a-critical-message-bus/
33•eatonphil•11h ago•1 comments

Step 5 Preview, a 1M-context MoE from StepFun, shows up on OpenRouter

https://openrouter.ai/stepfun/step-5-preview
118•AnneWodell•12h ago•27 comments

A 5.3M-year-old deep-sea whale necropolis in the Diamantina Zone

https://www.nature.com/articles/s41586-026-10546-z
113•bryanrasmussen•1d ago•7 comments

A Terminal Protocol for Program Status (OSC 7501)

https://mitchellh.com/writing/program-status-osc7501
125•mfiguiere•2d ago•43 comments

Show HN: Jevman – AI decision models play Pac-Man

https://opper.ai/jevman-benchmark/
50•felix089•12h ago•7 comments

Archaeologists Are Reconstructing the 'Invisible' Technologies of the Stone Age

https://www.smithsonianmag.com/science-nature/archaeologists-are-reconstructing-the-invisible-tec...
120•Hooke•1d ago•52 comments

Orkut.com

https://orkut.com/
166•andreynering•15h ago•125 comments

The Slow Formation of Durable Software

https://newsletter.dancohen.org/archive/the-slow-formation-of-durable-software/
278•benbreen•2d ago•113 comments

US man given prison sentence for bot-farming music streams

https://thequietus.com/news/us-man-given-prison-sentence-for-bot-farming-music-streams/
153•cdrnsf•1d ago•239 comments

OpenAI withdraws three mathematical results

https://twitter.com/danintheory/status/2108065033070789090
270•sashank_1509•22h ago•554 comments

The dawn of the age of the exoskeleton

https://theconversation.com/the-dawn-of-the-age-of-the-exoskeleton-281804
70•speckx•1d ago•39 comments

Anger as man sentenced to death for Facebook comment

https://www.themirror.com/news/world-news/anger-man-sentenced-death-facebook-2060304
20•bcaulfield•2h ago•7 comments

I think I found a planet nobody knew existed. I used Claude Code to find it

https://www.reddit.com/r/ClaudeAI/s/mbe5IY2LF9
124•pyduan•22h ago•53 comments