frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Right-Truncatable Prime Counter

https://github.com/EbodShojaei/Right-Truncatable-Primes
9•rainmans•7mo ago

Comments

throwawaymaths•7mo 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•7mo ago
i dont think smaller radixes make the problem more interesting. the problem is interesting because base 10 has a large branching factor
throwawaymaths•7mo 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•7mo ago
There's a Project Euler problem for finding truncatable prime numbers, from both left and right: https://projecteuler.net/problem=37
thechao•7mo 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.

Mathematics for Computer Science (2018) [pdf]

https://courses.csail.mit.edu/6.042/spring18/mcs.pdf
155•vismit2000•5h ago•22 comments

Linux Runs on Raspberry Pi RP2350's Hazard3 RISC-V Cores (2024)

https://www.hackster.io/news/jesse-taube-gets-linux-up-and-running-on-the-raspberry-pi-rp2350-s-h...
33•walterbell•5d ago•7 comments

How to Code Claude Code in 200 Lines of Code

https://www.mihaileric.com/The-Emperor-Has-No-Clothes/
573•nutellalover•17h ago•187 comments

European Commission issues call for evidence on open source

https://lwn.net/Articles/1053107/
223•pabs3•5h ago•119 comments

Wolves Became Dogs

https://www.economist.com/christmas-specials/2025/12/18/how-wolves-became-dogs
8•mooreds•3d ago•4 comments

Why I left iNaturalist

https://kueda.net/blog/2026/01/06/why-i-left-inat/
212•erutuon•11h ago•104 comments

What happened to WebAssembly

https://emnudge.dev/blog/what-happened-to-webassembly/
172•enz•5h ago•163 comments

Hacking a Casio F-91W digital watch (2023)

https://medium.com/infosec-watchtower/how-i-hacked-casio-f-91w-digital-watch-892bd519bd15
122•jollyjerry•4d ago•34 comments

Sopro TTS: A 169M model with zero-shot voice cloning that runs on the CPU

https://github.com/samuel-vitorino/sopro
267•sammyyyyyyy•16h ago•97 comments

Samba Was Written (2003)

https://download.samba.org/pub/tridge/misc/french_cafe.txt
55•tosh•5d ago•28 comments

Embassy: Modern embedded framework, using Rust and async

https://github.com/embassy-rs/embassy
235•birdculture•13h ago•98 comments

Bose has released API docs and opened the API for its EoL SoundTouch speakers

https://arstechnica.com/gadgets/2026/01/bose-open-sources-its-soundtouch-home-theater-smart-speak...
2360•rayrey•21h ago•354 comments

Photographing the hidden world of slime mould

https://www.bbc.com/news/articles/c9d9409p76qo
56•1659447091•1w ago•11 comments

Richard D. James aka Aphex Twin speaks to Tatsuya Takahashi (2017)

https://web.archive.org/web/20180719052026/http://item.warp.net/interview/aphex-twin-speaks-to-ta...
191•lelandfe•15h ago•70 comments

Show HN: Executable Markdown files with Unix pipes

55•jedwhite•10h ago•48 comments

1ML for non-specialists: introduction

https://pithlessly.github.io/1ml-intro
18•birdculture•6d ago•4 comments

The Jeff Dean Facts

https://github.com/LRitzdorf/TheJeffDeanFacts
487•ravenical•23h ago•169 comments

The unreasonable effectiveness of the Fourier transform

https://joshuawise.com/resources/ofdm/
248•voxadam•17h ago•104 comments

AI coding assistants are getting worse?

https://spectrum.ieee.org/ai-coding-degrades
341•voxadam•21h ago•537 comments

He was called a 'terrorist sympathizer.' Now his AI company is valued at $3B

https://sfstandard.com/2026/01/07/called-terrorist-sympathizer-now-ai-company-valued-3b/
206•newusertoday•18h ago•273 comments

Anthropic blocks third-party use of Claude Code subscriptions

https://github.com/anomalyco/opencode/issues/7410
407•sergiotapia•9h ago•332 comments

Mysterious Victorian-era shoes are washing up on a beach in Wales

https://www.smithsonianmag.com/smart-news/hundreds-of-mysterious-victorian-era-shoes-are-washing-...
39•Brajeshwar•3d ago•15 comments

MCP is a fad

https://tombedor.dev/mcp-is-a-fad/
101•risemlbill•2h ago•73 comments

Why is there a tiny hole in the airplane window? (2023)

https://www.afar.com/magazine/why-airplane-windows-have-tiny-holes
46•quan•4d ago•22 comments

Ushikuvirus: Newly discovered virus may offer clues to the origin of eukaryotes

https://www.tus.ac.jp/en/mediarelations/archive/20251219_9539.html
112•rustoo•1d ago•25 comments

Google AI Studio is now sponsoring Tailwind CSS

https://twitter.com/OfficialLoganK/status/2009339263251566902
680•qwertyforce•17h ago•239 comments

Systematically Improving Espresso: Mathematical Modeling and Experiment (2020)

https://www.cell.com/matter/fulltext/S2590-2385(19)30410-2
44•austinallegro•6d ago•10 comments

Fixing a Buffer Overflow in Unix v4 Like It's 1973

https://sigma-star.at/blog/2025/12/unix-v4-buffer-overflow/
135•vzaliva•18h ago•36 comments

Show HN: macOS menu bar app to track Claude usage in real time

https://github.com/richhickson/claudecodeusage
136•RichHickson•18h ago•46 comments

Mux (YC W16) is hiring a platform engineer that cares about (internal) DX

https://www.mux.com/jobs
1•mmcclure•15h ago