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•1y ago

Comments

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

Claude Opus 4.8

https://www.anthropic.com/news/claude-opus-4-8
929•craigmart•4h ago•729 comments

Bricks and Minifigs Stole a Man's $200k Lego Collection

https://mybricklog.com/blog/bricks-minifigs-corporate-stole-old-mans-200000-lego-collection
181•philips•1h ago•45 comments

Just Use Postgres for Durable Workflows

https://www.dbos.dev/blog/postgres-is-all-you-need-for-durable-execution
157•KraftyOne•2h ago•52 comments

Nitpicking the shell history scene in 'Tron: Legacy'

https://www.chiark.greenend.org.uk/~sgtatham/quasiblog/tron-legacy/
47•speckx•1h ago•6 comments

I hated writing–until I learned there's a science to it(2024)

https://www.science.org/content/article/i-hated-writing-until-i-learned-there-s-science-it
58•o4c•3h ago•20 comments

Caio, a cleaner search engine for 500k+ tech jobs

https://caio-jobs.com/
8•danicuki•46m ago•1 comments

Social Animus

https://justine.lol/animus/
6•jart•30m ago•0 comments

Bitburner, programming-based incremental game

https://bitburner-official.github.io/
43•agmater•3h ago•5 comments

News about Raspberry Pi 6 and Microcontroller Development

https://www.jeffgeerling.com/blog/2026/news-about-raspberry-pi-6-and-microcontroller-development/
90•rbanffy•2d ago•57 comments

Show HN: Continue? Y/N: A 60-second game about AI agent permission fatigue

https://llmgame.scalex.dev
180•Wirbelwind•7h ago•88 comments

The Most Unlikely School Bag

https://www.carryology.com/insights/carry-culture/the-tale-of-the-worlds-most-unlikely-school-bag/
32•surprisetalk•3d ago•12 comments

The Permanent Upper Crow

https://permanent-upper-crow.jasonwu.ink/
114•whiteblossom•5h ago•39 comments

Sam Altman and Dario Amodei are both walking back AI jobs apocalypse predictions

https://fortune.com/2026/05/26/sam-altman-dario-amodei-walking-back-ai-jobs-apocalypse-prophecies...
55•ianrahman•1h ago•40 comments

Various LLM Smells

https://shvbsle.in/various-llm-smells/
17•speckx•1h ago•3 comments

Indoor Wi-Fi Roaming with OpenWRT

https://taoofmac.com/space/blog/2026/05/26/1730
178•zdw•2d ago•87 comments

Separate the Cord from the Device

https://bookofjoe2.blogspot.com/2026/05/blog-post_27.html
11•bookofjoe•1h ago•9 comments

Show HN: Ktx – Open-source executable context layer for data agents

https://github.com/Kaelio/ktx
33•lucamrtl•5h ago•3 comments

Endive: A JVM native WebAssembly runtime

https://github.com/bytecodealliance/endive
30•theanonymousone•4h ago•9 comments

The Lone Lisp Heap

https://www.matheusmoreira.com/articles/lone-lisp-heap
16•stevekemp•2h ago•6 comments

EU fines Temu €200M for allowing sale of illegal products

https://www.bbc.co.uk/news/articles/c1k2ydn1rz8o
259•jjp•6h ago•187 comments

Confidence Scores for Exam Questions

https://nomagicpill.substack.com/p/confidence-scores-for-exam-questions
3•surprisetalk•3d ago•2 comments

Show HN: Hallucinate – Massively Multiplayer Online Rave

https://hallucinate.site
385•stagas•17h ago•170 comments

Legislation Killed Would Have Effectively Blocked Police LPR, Including Flock

https://ipvm.com/reports/bipartisan-alpr-amendment-killed
64•jhonovich•3h ago•36 comments

Ask HN: Entrepreneurs, how long did it take you to succeed?

5•asdev•5m ago•0 comments

Dynamic Workflows in Claude Code

https://claude.com/blog/introducing-dynamic-workflows-in-claude-code
116•mil22•3h ago•93 comments

Using Tailscale with an OrbStack VM on macOS

https://github.com/highpost/tailscale-macos-vm
36•highpost•2d ago•7 comments

YouTube to automatically label AI-generated videos

https://blog.youtube/news-and-events/improving-ai-labels-viewers-creators/
1250•nopg•1d ago•745 comments

Anthropic raises $65B in Series H funding at $965B post-money valuation

https://www.anthropic.com/news/series-h
159•meetpateltech•2h ago•139 comments

Trivial Pursuits

https://www.lrb.co.uk/the-paper/v48/n10/david-runciman/trivial-pursuits
16•diodorus•4h ago•6 comments

Show HN: Open-Source AI Racing Harness

https://www.elodin.systems/post/elodin-ai-grand-prix-race-sim-harness
58•danAtElodin•1d ago•6 comments