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.

Department of War Designates Anthropic Supply Chain Risk

https://twitter.com/secwar/status/2027507717469049070?s=46
195•jacobedawson•27m ago•107 comments

Leaving Google has actively improved my life

https://pseudosingleton.com/leaving-google-improved-my-life/
328•speckx•3h ago•173 comments

OpenAI raises $110B on $730B pre-money valuation

https://techcrunch.com/2026/02/27/openai-raises-110b-in-one-of-the-largest-private-funding-rounds...
266•zlatkov•8h ago•395 comments

NASA announces overhaul of Artemis program amid safety concerns, delays

https://www.cbsnews.com/news/nasa-artemis-moon-program-overhaul/
165•voxadam•6h ago•180 comments

A better streams API is possible for JavaScript

https://blog.cloudflare.com/a-better-web-streams-api/
336•nnx•8h ago•114 comments

A new California law says all operating systems need to have age verification

https://www.pcgamer.com/software/operating-systems/a-new-california-law-says-all-operating-system...
203•WalterSobchak•8h ago•224 comments

The Most-Seen UI on the Internet? Redesigning Turnstile and Challenge Pages

https://blog.cloudflare.com/the-most-seen-ui-on-the-internet-redesigning-turnstile-and-challenge-...
9•corvad•57m ago•1 comments

Otters as Bioindicators of Estuarine Health

https://emt.pensoft.net/article/185117/
6•PaulHoule•44m ago•1 comments

Dan Simmons, author of Hyperion, has died

https://www.dignitymemorial.com/obituaries/longmont-co/daniel-simmons-12758871
400•throw0101a•4h ago•169 comments

A Chinese official’s use of ChatGPT revealed an intimidation operation

https://www.cnn.com/2026/02/25/politics/chatgpt-china-intimidation-operation
86•cwwc•7h ago•58 comments

Let's discuss sandbox isolation

https://www.shayon.dev/post/2026/52/lets-discuss-sandbox-isolation/
75•shayonj•4h ago•20 comments

Writing a Guide to SDF Fonts

https://www.redblobgames.com/blog/2026-02-26-writing-a-guide-to-sdf-fonts/
54•chunkles•4h ago•5 comments

Show HN: Claude-File-Recovery, recover files from your ~/.claude sessions

https://github.com/hjtenklooster/claude-file-recovery
21•rikk3rt•6h ago•8 comments

Open source calculator firmware DB48X forbids CA/CO use due to age verification

https://github.com/c3d/db48x/commit/7819972b641ac808d46c54d3f5d1df70d706d286
109•iamnothere•7h ago•44 comments

Kyber (YC W23) Is Hiring an Enterprise Account Executive

https://www.ycombinator.com/companies/kyber/jobs/59yPaCs-enterprise-account-executive-ae
1•asontha•4h ago

Allocating on the Stack

https://go.dev/blog/allocation-optimizations
104•spacey•6h ago•43 comments

Modeling cycles of grift with evolutionary game theory

https://www.oranlooney.com/post/grifters-skeptics-marks/
71•ibobev•3d ago•31 comments

Show HN: I built a self-hosted course platform in Clojure

https://clojure.stream
13•jacekschae•1d ago•3 comments

Get free Claude max 20x for open-source maintainers

https://claude.com/contact-sales/claude-for-oss
372•zhisme•13h ago•177 comments

PCB Tracer

https://pcbtracer.com
28•Luc•3d ago•11 comments

Building secure, scalable agent sandbox infrastructure

https://browser-use.com/posts/two-ways-to-sandbox-agents
40•gregpr07•7h ago•9 comments

Court finds Fourth Amendment doesn’t support broad search of protesters’ devices

https://www.eff.org/deeplinks/2026/02/victory-tenth-circuit-finds-fourth-amendment-doesnt-support...
441•hn_acker•7h ago•80 comments

Implementing a Z80 / ZX Spectrum emulator with Claude Code

https://antirez.com/news/160
111•antirez•2d ago•55 comments

"Just a little detail that wouldn't sell anything"

https://unsung.aresluna.org/just-a-little-detail-that-wouldnt-sell-anything/
87•bobbiechen•3d ago•17 comments

Reading English from 1000 AD

https://lewiscampbell.tech/blog/260224.html
93•LAC-Tech•3d ago•35 comments

The Robotic Dexterity Deadlock

https://www.origami-robotics.com/blog/dexterity-deadlocks.html
64•shmublu•3h ago•38 comments

Can you reverse engineer our neural network?

https://blog.janestreet.com/can-you-reverse-engineer-our-neural-network/
246•jsomers•2d ago•180 comments

Tell HN: MitID, Denmark's digital ID, was down

113•mousepad12•12h ago•159 comments

We gave terabytes of CI logs to an LLM

https://www.mendral.com/blog/llms-are-good-at-sql
144•shad42•7h ago•83 comments

Show HN: RetroTick – Run classic Windows EXEs in the browser

https://retrotick.com/
167•lqs_•9h ago•47 comments