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

Comments

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

Zed 1.0

https://zed.dev/blog/zed-1-0
1426•salkahfi•9h ago•451 comments

Copy Fail – CVE-2026-31431

https://copy.fail/
456•unsnap_biceps•5h ago•214 comments

Germany has become the largest ammunition producer in the world

https://prm.ua/en/the-us-is-no-longer-the-leader-germany-has-become-the-largest-ammunition-produc...
75•doener•1h ago•36 comments

HERMES.md in commit messages causes requests to route to extra usage billing

https://github.com/anthropics/claude-code/issues/53262
925•homebrewer•4h ago•371 comments

OpenTrafficMap

https://opentrafficmap.org/
118•moooo99•3h ago•25 comments

Cursor Camp

https://neal.fun/cursor-camp/
510•bpierre•7h ago•89 comments

FastCGI: 30 years old and still the better protocol for reverse proxies

https://www.agwa.name/blog/post/fastcgi_is_the_better_protocol_for_reverse_proxies
214•agwa•7h ago•49 comments

Why I still reach for Lisp and Scheme instead of Haskell

https://jointhefreeworld.org/blog/articles/lisps/why-i-still-reach-for-scheme-instead-of-haskell/...
147•jjba23•14h ago•39 comments

DRAM Crunch: Lessons for System Design

https://www.eetimes.com/what-the-dram-crunch-teaches-us-about-system-design/
12•giuliomagnifico•1d ago•0 comments

Gooseworks (YC W23) Is Hiring a Founding Growth Engineer

https://www.ycombinator.com/companies/gooseworks/jobs/ztgY6bD-founding-growth-engineer
1•shivsak•1h ago

Laws of UX

https://lawsofux.com/
151•bobbiechen•6h ago•25 comments

Ramp's Sheets AI Exfiltrates Financials

https://www.promptarmor.com/resources/ramps-sheets-ai-exfiltrates-financials
93•takira•5h ago•30 comments

An open-source stethoscope that costs between $2.5 and $5 to produce

https://github.com/GliaX/Stethoscope
173•0x54MUR41•8h ago•73 comments

Third Editor Fired in Elsevier's Citation Cartel Crackdown

https://www.chrisbrunet.com/p/third-editor-fired-in-elseviers-citation
222•RigbyTaro•7h ago•70 comments

Postgres's lateral joins allow for quite the good eDSL

https://bensimms.moe/postgres-lateral-makes-quite-a-good-dsl/
40•nitros•2d ago•3 comments

Kyoto cherry blossoms now bloom earlier than at any point in 1,200 years

https://jivx.com/kyoto-bloom
197•momentmaker•4h ago•56 comments

Soft launch of open-source code platform for government

https://www.nldigitalgovernment.nl/news/soft-launch-for-government-open-source-code-platform/
511•e12e•14h ago•117 comments

We need a federation of forges

https://blog.tangled.org/federation/
504•icy•9h ago•318 comments

Vera: a programming language designed for machines to write

https://github.com/aallan/vera
16•unignorant•1h ago•5 comments

Online age verification is the hill to die on

https://x.com/GlennMeder/status/2049088498163216560
684•Cider9986•7h ago•432 comments

How to Build the Future: Demis Hassabis [video]

https://www.youtube.com/watch?v=JNyuX1zoOgU
71•sandslash•9h ago•36 comments

Blaster Beam (Musical Instrument)

https://en.wikipedia.org/wiki/Blaster_beam
10•hyperific•1d ago•4 comments

I accidentally made law enforcement shut down their fake honeypot

https://lina.sh/blog/ddos-honeypot
31•fishgoesblub•2h ago•6 comments

> Be Alexandra Elbakyan

https://nitter.space/MushtaqBilalPhD/status/2049057344013881523#m
11•DanielleMolloy•57m ago•0 comments

Virtualisation on Apple Silicon Macs is different

https://eclecticlight.co/2026/04/29/virtualisation-on-apple-silicon-macs-is-different/
61•zdw•6h ago•15 comments

Ghostty is leaving GitHub

https://mitchellh.com/writing/ghostty-leaving-github
3320•WadeGrimridge•1d ago•984 comments

Maryland becomes first state to ban surveillance pricing in grocery stores

https://www.theguardian.com/technology/2026/apr/29/maryland-grocery-stores-ban-surveillance-pricing
217•01-_-•6h ago•152 comments

I benchmarked Claude Code's caveman plugin against "be brief."

https://www.maxtaylor.me/articles/i-benchmarked-caveman-against-two-words
11•max-t-dev•2h ago•0 comments

Mistral Medium 3.5

https://mistral.ai/news/vibe-remote-agents-mistral-medium-3-5
405•meetpateltech•8h ago•191 comments

GitHub – DOS 1.0: Transcription of Tim Paterson's DOS Printouts

https://github.com/DOS-History/Paterson-Listings
115•s2l•12h ago•6 comments