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.

Statement from Dario Amodei on our discussions with the Department of War

https://www.anthropic.com/news/statement-department-of-war
1868•qwertox•11h ago•992 comments

The Hunt for Dark Breakfast

https://moultano.wordpress.com/2026/02/22/the-hunt-for-dark-breakfast/
219•moultano•6h ago•82 comments

The normalization of corruption in organizations (2003) [pdf]

https://gwern.net/doc/sociology/2003-ashforth.pdf
49•rendx•3h ago•11 comments

Julia: Performance Tips

https://docs.julialang.org/en/v1/manual/performance-tips/
47•tosh•3d ago•26 comments

What Claude Code chooses

https://amplifying.ai/research/claude-code-picks
416•tin7in•15h ago•172 comments

80386 Protection

https://nand2mario.github.io/posts/2026/80386_protection/
64•nand2mario•2d ago•12 comments

AirSnitch: Demystifying and breaking client isolation in Wi-Fi networks [pdf]

https://www.ndss-symposium.org/wp-content/uploads/2026-f1282-paper.pdf
357•DamnInteresting•18h ago•167 comments

Ubicloud (YC W24): Software Engineer – $95-$250K in Turkey, Netherlands, CA

https://www.ycombinator.com/companies/ubicloud/jobs/j4bntEJ-software-engineer
1•ozgune•1h ago

Layoffs at Block

https://twitter.com/jack/status/2027129697092731343
714•mlex•12h ago•768 comments

The Origins of Agar

https://www.asimov.press/p/agar
23•surprisetalk•3d ago•3 comments

What does " 2>&1 " mean?

https://stackoverflow.com/questions/818255/what-does-21-mean
281•alexmolas•13h ago•151 comments

Parakeet.cpp – Parakeet ASR inference in pure C++ with Metal GPU acceleration

https://github.com/Frikallo/parakeet.cpp
54•noahkay13•6h ago•10 comments

Writing a "clear room" Z80 and Spectrum emulator with Claude Code

https://antirez.com/news/160
19•antirez•1d ago•11 comments

I rendered 1,418 confusables over 230 fonts. Most aren't confusable to the eye

https://paultendo.github.io/posts/confusable-vision-visual-similarity/
58•paultendo•1d ago•27 comments

Launch HN: Cardboard (YC W26) – Agentic video editor

https://www.usecardboard.com/
116•sxmawl•15h ago•63 comments

Show HN: As Level Chemistry Lab Simulator

https://github.com/nsriram/chem_lab
5•sriram_iyengar•3d ago•1 comments

OsmAnd's Faster Offline Navigation (2025)

https://osmand.net/blog/fast-routing/
170•todsacerdoti•15h ago•54 comments

An Introduction to the Codex Seraphinianus, the Strangest Book Ever Published

https://www.openculture.com/2026/02/an-introduction-to-the-codex-seraphinianus.html
72•vinhnx•3d ago•15 comments

Museum of Plugs and Sockets

https://plugsocketmuseum.nl/index.html
122•ohjeez•3d ago•49 comments

I baked a pie every day for a year

https://www.theguardian.com/lifeandstyle/2026/feb/22/a-new-start-after-60-i-baked-a-pie-every-day...
272•NaOH•3d ago•175 comments

Palm OS User Interface Guidelines (2003) [pdf]

https://cs.uml.edu/~fredm/courses/91.308-spr05/files/palmdocs/uiguidelines.pdf
184•spiffytech•16h ago•91 comments

BuildKit: Docker's Hidden Gem That Can Build Almost Anything

https://tuananh.net/2026/02/25/buildkit-docker-hidden-gem/
184•jasonpeacock•19h ago•64 comments

Understanding the Go Runtime: The Memory Allocator

https://internals-for-interns.com/posts/go-memory-allocator/
72•valyala•3d ago•11 comments

Show HN: Hacker Smacker – Spot great (and terrible) HN commenters at a glance

https://hackersmacker.org
120•conesus•2d ago•139 comments

Hydroph0bia – fixed SecureBoot bypass for UEFI firmware from Insyde H2O (2025)

https://coderush.me/hydroph0bia-part3/
59•transpute•11h ago•1 comments

Show HN: Linex – A daily challenge: placing pieces on a board that fights back

https://www.playlinex.com/
71•Humanista75•2d ago•20 comments

This time is different

https://shkspr.mobi/blog/2026/02/this-time-is-different/
167•speckx•20h ago•291 comments

Two insider cases we've recently closed

https://news.kalshi.com/p/kalshi-trading-violation-enforcement-cases
29•fortran77•8h ago•58 comments

Show HN: Deff – Side-by-side Git diff review in your terminal

https://github.com/flamestro/deff
105•flamestro•16h ago•58 comments

Smartphone market forecast to decline this year due to memory shortage

https://www.idc.com/resource-center/press-releases/wwsmartphoneforecast4q25/
238•littlexsparkee•11h ago•253 comments