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.

Hardware Attestation as Monopoly Enabler

https://grapheneos.social/@GrapheneOS/116550899908879585
1252•ChuckMcM•12h ago•408 comments

Local AI needs to be the norm

https://unix.foo/posts/local-ai-needs-to-be-norm/
890•cylo•13h ago•398 comments

The Greatest Shot in Television: James Burke Had One Chance to Nail This Scene (2024)

https://www.openculture.com/2024/10/the-greatest-shot-in-television.html
93•susam•3h ago•34 comments

7 lines of code, 3 minutes: Implement a programming language (2010)

https://matt.might.net/articles/implementing-a-programming-language/
22•azhenley•1h ago•1 comments

I'm going back to writing code by hand

https://blog.k10s.dev/im-going-back-to-writing-code-by-hand/
217•dropbox_miner•5h ago•87 comments

Running local models on an M4 with 24GB memory

https://jola.dev/posts/running-local-models-on-m4
231•shintoist•7h ago•77 comments

Obsidian plugin was abused to deploy a remote access trojan

https://cyber.netsecops.io/articles/obsidian-plugin-abused-in-campaign-to-deploy-phantom-pulse-rat/
156•cmbailey•8h ago•74 comments

Incident Report: CVE-2024-YIKES

https://nesbitt.io/2026/02/03/incident-report-cve-2024-yikes.html
477•miniBill•12h ago•119 comments

An AI coding agent, used to write code, needs to reduce your maintenance costs

https://www.jamesshore.com/v2/blog/2026/you-need-ai-that-reduces-your-maintenance-costs
109•cratermoon•6h ago•24 comments

Show HN: adamsreview – better multi-agent PR reviews for Claude Code

https://github.com/adamjgmiller/adamsreview
18•adamthegoalie•4h ago•1 comments

Ask HN: What are you working on? (May 2026)

165•david927•12h ago•589 comments

How Fast Does Claude, Acting as a User Space IP Stack, Respond to Pings?

https://dunkels.com/adam/claude-user-space-ip-stack-ping/
51•adunk•7h ago•10 comments

First tunnel element of the Fehmarnbelt Tunnel immersed

https://www.arup.com/en-us/news/first-fehmarnbelt-tunnel-element-lowered/
74•robin_reala•3d ago•17 comments

dBase: 1979-2026

https://delphinightmares.substack.com/p/dbase-1979-2026
52•deeaceofbase•3d ago•13 comments

Guy Goma's Accidental BBC Interview Lives on After 20 Years

https://www.nytimes.com/2026/05/06/business/media/bbc-guy-goma-interview.html
89•nxobject•2d ago•19 comments

I returned to AWS and was reminded why I left

http://fourlightyears.blogspot.com/2026/05/i-returned-to-aws-and-was-reminded-hard.html
716•andrewstuart•1d ago•516 comments

Traces Of Humanity

https://tracesofhumanity.org/hello-world/
143•alex77456•13h ago•20 comments

The people preserving the scientific practice of bird banding

https://thenarwhal.ca/bird-banding-ontario/
47•bookofjoe•3d ago•0 comments

Seeing Birdsong

https://www.lucioarese.net/seeing-birdsong/
6•carabiner•3d ago•0 comments

PS3 Emulator Devs Politely Ask That People Stop Flooding It with AI PRs

https://kotaku.com/playstation-3-emulator-devs-politely-ask-that-people-stop-flooding-it-with-ai-...
142•stalfosknight•6h ago•90 comments

Stop MitM on the first SSH connection, on any VPS or cloud provider

https://www.joachimschipper.nl/Stop%20MITM%20on%20the%20first%20SSH%20connection,%20on%20any%20VP...
103•JoachimSchipper•2d ago•61 comments

Eight More '8-Bit Era' Microprocessors

https://thechipletter.substack.com/p/eight-more-8-bit-era-microprocessors
68•klelatti•2d ago•19 comments

Gode Cookery – Authentic Medieval Recipes

http://www.godecookery.com/godeboke/godeboke.htm
7•Mr_Minderbinder•3d ago•0 comments

The locals don't know

https://www.quarter--mile.com/The-Locals-Dont-Know
128•herbertl•14h ago•99 comments

Maryland citizens hit with $2B power grid upgrade for out-of-state AI

https://www.tomshardware.com/tech-industry/artificial-intelligence/maryland-citizens-slapped-with...
215•lemonberry•9h ago•118 comments

Shelf Source: Tom MacWright

https://roadlessread.com/views/ss-macwright
9•tobr•1d ago•0 comments

Idempotency is easy until the second request is different

https://blog.dochia.dev/blog/idempotency/
298•ludovicianul•3d ago•180 comments

Walking slower? Your ears, not your knees, might be the problem

https://www.wsj.com/health/wellness/hearing-loss-walking-speed-iphone-study-c53c482a
106•marc__1•1d ago•67 comments

Conway's Law and Cross-Hatching

https://willmanning.com/writing/conways-law-and-cross-hatching
7•weatherreport•2d ago•0 comments

Task Paralysis and AI

https://g5t.de/articles/20260510-task-paralysis-and-ai/index.html
222•MrGilbert•1d ago•112 comments