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.

GPT-5.4

https://openai.com/index/introducing-gpt-5-4/
700•mudkipdev•10h ago•610 comments

Nobody ever got fired for using a struct

https://www.feldera.com/blog/nobody-ever-got-fired-for-using-a-struct
44•gz09•3d ago•26 comments

Where things stand with the Department of War

https://www.anthropic.com/news/where-stand-department-war
286•surprisetalk•4h ago•257 comments

10% of Firefox crashes are caused by bitflips

https://mas.to/@gabrielesvelto/116171750653898304
363•marvinborner•1d ago•196 comments

The Brand Age

https://paulgraham.com/brandage.html
272•bigwheels•10h ago•236 comments

Labor market impacts of AI: A new measure and early evidence

https://www.anthropic.com/research/labor-market-impacts
102•jjwiseman•5h ago•115 comments

A standard protocol to handle and discard low-effort, AI-Generated pull requests

https://406.fail/
122•Muhammad523•6h ago•36 comments

Show HN: Swarm – Program a colony of 200 ants using a custom assembly language

https://dev.moment.com/
5•armandhammer10•25m ago•0 comments

CBP tapped into the online advertising ecosystem to track peoples’ movements

https://www.404media.co/cbp-tapped-into-the-online-advertising-ecosystem-to-track-peoples-movements/
409•ece•1d ago•164 comments

Stop Using Grey Text (2025)

https://catskull.net/stop-using-grey-text.html
39•catskull•5h ago•24 comments

Good software knows when to stop

https://ogirardot.writizzy.com/p/good-software-knows-when-to-stop
373•ssaboum•14h ago•198 comments

Wikipedia was in read-only mode following mass admin account compromise

https://www.wikimediastatus.net
917•greyface-•12h ago•319 comments

Hardware hotplug events on Linux, the gory details

https://arcanenibble.github.io/hardware-hotplug-events-on-linux-the-gory-details.html
126•todsacerdoti•3d ago•7 comments

Hacking Super Mario 64 using covering spaces

https://happel.ai/posts/covering-spaces-geometries-visualized/
18•nill0•3d ago•2 comments

A GitHub Issue Title Compromised 4k Developer Machines

https://grith.ai/blog/clinejection-when-your-ai-tool-installs-another
353•edf13•12h ago•84 comments

A ternary plot of citrus geneology

https://www.jlauf.com/writing/citrus/
104•jlauf•2d ago•16 comments

Remotely unlocking an encrypted hard disk

https://jyn.dev/remotely-unlocking-an-encrypted-hard-disk/
105•janandonly•9h ago•54 comments

Show HN: Jido 2.0, Elixir Agent Framework

https://jido.run/blog/jido-2-0-is-here
258•mikehostetler•12h ago•56 comments

How to install and start using LineageOS on your phone

https://lockywolf.net/2026-02-19_How-to-install-and-start-using-LineageOS-on-your-phone.d/index.html
21•todsacerdoti•3h ago•9 comments

Show HN: PageAgent, A GUI agent that lives inside your web app

https://alibaba.github.io/page-agent/
78•simon_luv_pho•11h ago•38 comments

Structured AI (YC F25) Is Hiring

https://www.ycombinator.com/companies/structured-ai/jobs/3cQY6Cu-mechanical-design-engineer-found...
1•issygreenslade•7h ago

Judge orders government to begin refunding more than $130B in tariffs

https://www.wsj.com/politics/policy/judge-orders-government-to-begin-refunding-more-than-130-bill...
854•JumpCrisscross•14h ago•632 comments

AI and the Ship of Theseus

https://lucumr.pocoo.org/2026/3/5/theseus/
65•pixelmonkey•12h ago•73 comments

Proton Mail Helped FBI Unmask Anonymous 'Stop Cop City' Protester

https://www.404media.co/proton-mail-helped-fbi-unmask-anonymous-stop-cop-city-protestor/
275•sedatk•7h ago•138 comments

Ethiopia gets $350M World Bank financing for its digital ID project (2024)

https://www.mariblock.com/stories/ethiopia-to-get-350-million-world-bank-financing-for-its-digita...
42•tinfoilhatter•6h ago•31 comments

GLiNER2: Unified Schema-Based Information Extraction

https://github.com/fastino-ai/GLiNER2
45•apwheele•8h ago•5 comments

The next generations of Bubble Tea, Lip Gloss, and Bubbles are available now

https://charm.land/blog/v2/
157•atkrad•5h ago•58 comments

Let's Get Physical

https://m4iler.cloud/posts/lets-get-physical/
112•MBCook•9h ago•15 comments

Converting dash cam videos into Panoramax images

https://www.openstreetmap.org/user/FeetAndInches/diary/408268
40•marklit•3d ago•7 comments

OpenTitan Shipping in Production

https://opensource.googleblog.com/2026/03/opentitan-shipping-in-production.html
90•rayhaanj•9h ago•14 comments