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.

US Court of Appeals: TOS may be updated by email, use can imply consent [pdf]

https://cdn.ca9.uscourts.gov/datastore/memoranda/2026/03/03/25-403.pdf
158•dryadin•3h ago•69 comments

Grammarly is offering ‘expert’ AI reviews from famous dead and living writers

https://www.wired.com/story/grammarly-is-offering-expert-ai-reviews-from-your-favorite-authors-de...
35•jmsflknr•4d ago•34 comments

Show HN: Mcp2cli – One CLI for every API, 96-99% fewer tokens than native MCP

https://github.com/knowsuchagency/mcp2cli
69•knowsuchagency•4h ago•36 comments

Agent Safehouse – macOS-native sandboxing for local agents

https://agent-safehouse.dev/
570•atombender•13h ago•141 comments

Microscopes can see video on a laserdisc

https://www.youtube.com/watch?v=qZuR-772cks
435•zdw•1d ago•53 comments

PCB devboard the size of a USB-C plug

https://github.com/Dieu-de-l-elec/AngstromIO-devboard
174•zachlatta•1d ago•33 comments

Ask HN: What Are You Working On? (March 2026)

147•david927•9h ago•504 comments

We should revisit literate programming in the agent era

https://silly.business/blog/we-should-revisit-literate-programming-in-the-agent-era/
236•horseradish•13h ago•139 comments

Every single board computer I tested in 2025

https://bret.dk/every-single-board-computer-i-tested-in-2025/
167•speckx•3d ago•50 comments

FrameBook

https://fb.edoo.gg
430•todsacerdoti•18h ago•72 comments

The death of social media is the renaissance of RSS (2025)

https://www.smartlab.at/rss-revival-life-after-social-media/
136•jruohonen•5h ago•76 comments

How the Sriracha guys screwed over their supplier

https://old.reddit.com/r/KitchenConfidential/comments/1ro61g2/how_the_sriracha_guys_screwed_over_...
174•thunderbong•5h ago•41 comments

Linux Internals: How /proc/self/mem writes to unwritable memory (2021)

https://offlinemark.com/an-obscure-quirk-of-proc/
80•medbar•11h ago•18 comments

My Homelab Setup

https://bryananthonio.com/blog/my-homelab-setup/
231•photon_collider•17h ago•150 comments

Artificial-life: A simple (300 lines of code) reproduction of Computational Life

https://github.com/Rabrg/artificial-life
110•tosh•13h ago•12 comments

I love email (2023)

https://blog.xoria.org/email/
11•surprisetalk•3d ago•2 comments

I made a programming language with M&Ms

https://mufeedvh.com/posts/i-made-a-programming-language-with-mnms/
80•tosh•15h ago•34 comments

Why can't you tune your guitar? (2019)

https://www.ethanhein.com/wp/2019/why-cant-you-tune-your-guitar/
209•digitallogic•4d ago•148 comments

My “grand vision” for Rust

https://blog.yoshuawuyts.com/a-grand-vision-for-rust/
188•todsacerdoti•4d ago•176 comments

Living human brain cells play DOOM on a CL1 [video]

https://www.youtube.com/watch?v=yRV8fSw6HaE
189•kevinak•18h ago•186 comments

Pushing and Pulling: Three reactivity algorithms

https://jonathan-frere.com/posts/reactivity-algorithms/
99•frogulis•1d ago•16 comments

Humanoid robot: The evolution of Kawasaki’s challenge

https://kawasakirobotics.com/in/blog/202511_kaleido/
14•hhs•3d ago•2 comments

WSL Manager

https://github.com/bostrot/wsl2-distro-manager
104•gballan•15h ago•55 comments

Z80 Sans – a disassembler in a font (2024)

https://github.com/nevesnunes/z80-sans
113•pabs3•4d ago•12 comments

Triumph of the toons: how animation came to rule the box office

https://economist.com/culture/2026/03/05/triumph-of-the-toons-how-animation-came-to-rule-the-box-...
17•andsoitis•3d ago•19 comments

The legendary Mojave Phone Booth is back (2013)

https://dailydot.com/mojave-phone-booth-back-number
32•1970-01-01•2d ago•6 comments

Ask HN: How to be alone?

464•sillysaurusx•22h ago•336 comments

Show HN: Skir – like Protocol Buffer but better

https://skir.build/
88•gepheum•16h ago•45 comments

Show HN: I built a real-time OSINT dashboard pulling 15 live global feeds

https://github.com/BigBodyCobain/Shadowbroker
238•vancecookcobxin•14h ago•99 comments

Case Study: lynnandtonic.com 2025 refresh

https://lynnandtonic.com/thoughts/entries/case-study-2025-refresh/
16•surprisetalk•3d ago•2 comments