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

Comments

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

DoNotNotify is now Open Source

https://donotnotify.com/opensource.html
189•awaaz•4h ago•30 comments

Show HN: LocalGPT – A local-first AI assistant in Rust with persistent memory

https://github.com/localgpt-app/localgpt
242•yi_wang•10h ago•116 comments

Matchlock: Linux-based sandboxing for AI agents

https://github.com/jingkaihe/matchlock
30•jingkai_he•3h ago•2 comments

Reverse Engineering Raiders of the Lost Ark for the Atari 2600

https://github.com/joshuanwalker/Raiders2600
14•pacod•2h ago•1 comments

Haskell for all: Beyond agentic coding

https://haskellforall.com/2026/02/beyond-agentic-coding
141•RebelPotato•9h ago•41 comments

SectorC: A C Compiler in 512 bytes (2023)

https://xorvoid.com/sectorc.html
322•valyala•18h ago•63 comments

LLMs as the new high level language

https://federicopereiro.com/llm-high/
135•swah•5d ago•241 comments

The Architecture of Open Source Applications (Volume 1) Berkeley DB

https://aosabook.org/en/v1/bdb.html
45•grep_it•5d ago•8 comments

Modern and Antique Technologies Reveal a Dynamic Cosmos

https://www.quantamagazine.org/how-modern-and-antique-technologies-reveal-a-dynamic-cosmos-20260202/
11•sohkamyung•5d ago•0 comments

Software factories and the agentic moment

https://factory.strongdm.ai/
241•mellosouls•20h ago•399 comments

Rabbit Ear "Origami": programmable origami in the browser (JS)

https://rabbitear.org/book/origami.html
8•molszanski•3d ago•2 comments

Speed up responses with fast mode

https://code.claude.com/docs/en/fast-mode
195•surprisetalk•17h ago•199 comments

(AI) Slop Terrifies Me

https://ezhik.jp/ai-slop-terrifies-me/
13•Ezhik•1h ago•4 comments

Hoot: Scheme on WebAssembly

https://www.spritely.institute/hoot/
197•AlexeyBrin•23h ago•36 comments

LineageOS 23.2

https://lineageos.org/Changelog-31/
78•pentagrama•6h ago•18 comments

Stories from 25 Years of Software Development

https://susam.net/twenty-five-years-of-computing.html
211•vinhnx•21h ago•24 comments

uLauncher

https://github.com/jrpie/launcher
37•dtj1123•5d ago•8 comments

Vocal Guide – belt sing without killing yourself

https://jesperordrup.github.io/vocal-guide/
374•jesperordrup•1d ago•112 comments

Brookhaven Lab's RHIC concludes 25-year run with final collisions

https://www.hpcwire.com/off-the-wire/brookhaven-labs-rhic-concludes-25-year-run-with-final-collis...
85•gnufx•16h ago•66 comments

The Legacy of Daniel Kahneman: A Personal View (2025)

https://ejpe.org/journal/article/view/1075/753
4•cainxinth•3d ago•0 comments

Wood Gas Vehicles: Firewood in the Fuel Tank (2010)

https://solar.lowtechmagazine.com/2010/01/wood-gas-vehicles-firewood-in-the-fuel-tank/
56•Rygian•3d ago•28 comments

Show HN: I saw this cool navigation reveal, so I made a simple HTML+CSS version

https://github.com/Momciloo/fun-with-clip-path
116•momciloo•17h ago•24 comments

First Proof

https://arxiv.org/abs/2602.05192
156•samasblack•20h ago•94 comments

In the Australian outback, we're listening for nuclear tests

https://www.abc.net.au/news/2026-02-08/australian-outback-nuclear-tests-listening-warramunga-faci...
16•defrost•1h ago•4 comments

Start all of your commands with a comma (2009)

https://rhodesmill.org/brandon/2009/commands-with-comma/
621•theblazehen•3d ago•223 comments

Substack confirms data breach affects users’ email addresses and phone numbers

https://techcrunch.com/2026/02/05/substack-confirms-data-breach-affecting-email-addresses-and-pho...
76•witnessme•7h ago•34 comments

Al Lowe on model trains, funny deaths and working with Disney

https://spillhistorie.no/2026/02/06/interview-with-sierra-veteran-al-lowe/
114•thelok•19h ago•26 comments

Where did all the starships go?

https://www.datawrapper.de/blog/science-fiction-decline
197•speckx•4d ago•287 comments

The AI boom is causing shortages everywhere else

https://www.washingtonpost.com/technology/2026/02/07/ai-spending-economy-shortages/
358•1vuio0pswjnm7•1d ago•591 comments

OpenCiv3: Open-source, cross-platform reimagining of Civilization III

https://openciv3.org/
929•klaussilveira•1d ago•283 comments