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•9mo ago

Comments

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

Claude March 2026 usage promotion

https://support.claude.com/en/articles/14063676-claude-march-2026-usage-promotion
77•weldu•1h ago•42 comments

Show HN: Han – A Korean programming language written in Rust

https://github.com/xodn348/han
23•xodn348•31m ago•0 comments

Hostile Volume – A game about adjusting volume with intentionally bad UI

https://hostilevolume.com/
59•Velocifyer•3h ago•36 comments

Fedora 44 on the Raspberry Pi 5

https://nullr0ute.com/2026/03/fedora-44-on-the-raspberry-pi-5/
21•jandeboevrie•2h ago•2 comments

Marketing for Founders

https://github.com/EdoStra/Marketing-for-Founders
54•jimsojim•2h ago•9 comments

MCP is dead; long live MCP

https://chrlschn.dev/blog/2026/03/mcp-is-dead-long-live-mcp/
72•CharlieDigital•2h ago•58 comments

Montana passes Right to Compute act (2025)

https://www.westernmt.news/2025/04/21/montana-leads-the-nation-with-groundbreaking-right-to-compu...
221•bilsbie•7h ago•187 comments

Show HN: Ichinichi – One note per day, E2E encrypted, local-first

37•katspaugh•3h ago•16 comments

A Recursive Algorithm to Render Signed Distance Fields

https://pointersgonewild.com/2026-03-06-a-recursive-algorithm-to-render-signed-distance-fields/
14•surprisetalk•3d ago•3 comments

Baochip-1x: What it is, why I'm doing it now and how it came about

https://www.crowdsupply.com/baochip/dabao/updates/what-it-is-why-im-doing-it-now-and-how-it-came-...
247•timhh•3d ago•37 comments

It's time to move your docs in the repo

https://www.dein.fr/posts/2026-03-13-its-time-to-move-your-docs-in-the-repo
74•gregdoesit•2h ago•49 comments

Offloading FFmpeg with Cloudflare

https://kentcdodds.com/blog/offloading-ffmpeg-with-cloudflare
5•heftykoo•4d ago•0 comments

An ode to bzip

https://purplesyringa.moe/blog/an-ode-to-bzip/
70•signa11•5h ago•45 comments

CSMWrap: Legacy BIOS booting on UEFI-only systems via SeaBIOS

https://github.com/CSMWrap/CSMWrap
14•_joel•4d ago•3 comments

Python: The Optimization Ladder

https://cemrehancavdar.com/2026/03/10/optimization-ladder/
234•Twirrim•4d ago•83 comments

Show HN: Learn Arabic with spaced repetition and comprehensible input

https://abjadpro.com
57•adangit•5h ago•12 comments

Sunsetting Jazzband

https://jazzband.co/news/2026/03/14/sunsetting-jazzband
110•mooreds•4h ago•37 comments

Show HN: GitAgent – An open standard that turns any Git repo into an AI agent

https://www.gitagent.sh/
73•sivasurend•8h ago•7 comments

Generalizing Knuth's Pseudocode Architecture From Algorithms to Knowledge

https://www.researchgate.net/publication/401189185_Towards_a_Generalization_of_Knuth%27s_Pseudoco...
23•isomorphist•3d ago•1 comments

GIMP 3.2 released

https://www.gimp.org/news/2026/03/14/gimp-3-2-released/
155•F3nd0•2h ago•37 comments

9 Mothers Defense (YC P26) Is Hiring in Austin

https://jobs.ashbyhq.com/9-mothers?utm_source=x8pZ4B3P3Q
1•ukd1•8h ago

XML is a cheap DSL

https://unplannedobsolescence.com/blog/xml-cheap-dsl/
216•y1n0•9h ago•226 comments

Megadev: A Development Kit for the Sega Mega Drive and Mega CD Hardware

https://github.com/drojaazu/megadev
108•XzetaU8•12h ago•6 comments

Life as an OnlyFans 'chatter'

https://www.bbc.com/news/articles/cq571g9gd4lo
111•1659447091•3d ago•137 comments

Library of Short Stories

https://www.libraryofshortstories.com/
3•debo_•1h ago•0 comments

Nmap in the movies (2008)

https://nmap.org/movies/
136•homebrewer•5h ago•18 comments

The Washington Post Is Using Reader Data to Set Subscription Prices

https://washingtonian.com/2026/03/12/the-washington-post-is-using-reader-data-to-set-subscription...
13•kklisura•1h ago•1 comments

Starlink militarization and its impact on global strategic stability

https://interpret.csis.org/translations/starlink-militarization-and-its-impact-on-global-strategi...
95•msuniverse2026•12h ago•118 comments

1M context is now generally available for Opus 4.6 and Sonnet 4.6

https://claude.com/blog/1m-context-ga
1090•meetpateltech•1d ago•467 comments

2026 tech layoffs reach 45,000 in March

https://technode.global/2026/03/09/2026-tech-layoffs-reach-45000-in-march-more-than-9200-due-to-a...
126•ninadwrites•2h ago•99 comments