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.

AI Made Writing Code Easier. It Made Being an Engineer Harder

https://www.ivanturkovic.com/2026/02/25/ai-made-writing-code-easier-engineering-harder/
22•saikatsg•18m ago•13 comments

I built a demo of what AI chat will look like when it's "free" and ad-supported

https://99helpers.com/tools/ad-supported-chat
167•nickk81•2h ago•93 comments

Microgpt

http://karpathy.github.io/2026/02/12/microgpt/
1188•tambourine_man•12h ago•209 comments

Ghostty – Terminal Emulator

https://ghostty.org/docs
40•oli5679•2h ago•4 comments

Decision trees – the unreasonable power of nested decision rules

https://mlu-explain.github.io/decision-tree/
189•mschnell•5h ago•26 comments

Interview with Øyvind Kolås, GIMP developer

https://www.gimp.org/news/2026/02/22/%C3%B8yvind-kol%C3%A5s-interview-ww2017/
30•ibobev•2d ago•3 comments

We do not think Anthropic should be designated as a supply chain risk

https://twitter.com/OpenAI/status/2027846016423321831
635•golfer•17h ago•339 comments

10-202: Introduction to Modern AI (CMU)

https://modernaicourse.org
116•vismit2000•6h ago•29 comments

Switch to Claude without starting over

https://claude.com/import-memory
304•doener•6h ago•156 comments

An ode to houseplant programming (2025)

https://hannahilea.com/blog/houseplant-programming/
79•evakhoury•1d ago•13 comments

Why is the first C++ (m)allocation always 72 KB?

https://joelsiks.com/posts/cpp-emergency-pool-72kb-allocation/
70•joelsiks•5h ago•8 comments

The real cost of random I/O

https://vondra.me/posts/the-real-cost-of-random-io/
33•jpineman•3d ago•1 comments

Show HN: Vertex.js – A 1kloc SPA Framework

https://lukeb42.github.io/vertex-manual.html
11•LukeB42•3h ago•4 comments

Flightradar24 for Ships

https://atlas.flexport.com/
18•chromy•3h ago•7 comments

Robust and efficient quantum-safe HTTPS

https://security.googleblog.com/2026/02/cultivating-robust-and-efficient.html
53•tptacek•1d ago•4 comments

Obsidian Sync now has a headless client

https://help.obsidian.md/sync/headless
517•adilmoujahid•21h ago•173 comments

The happiest I've ever been

https://ben-mini.com/2026/the-happiest-ive-ever-been
552•bewal416•3d ago•298 comments

Rydberg atoms detect clear signals from a handheld radio

https://phys.org/news/2026-02-rydberg-atoms-handheld-radio.html
27•Brajeshwar•1d ago•11 comments

Block the “Upgrade to Tahoe” Alerts

https://robservatory.com/block-the-upgrade-to-tahoe-alerts-and-system-settings-indicator/
271•todsacerdoti•19h ago•133 comments

The Windows 95 user interface: A case study in usability engineering (1996)

https://dl.acm.org/doi/fullHtml/10.1145/238386.238611
307•ksec•16h ago•218 comments

H-Bomb: A Frank Lloyd Wright typographic mystery

https://www.inconspicuous.info/p/h-bomb-a-frank-lloyd-wright-typographic
108•mrngm•3d ago•30 comments

Hardwood: A New Parser for Apache Parquet

https://www.morling.dev/blog/hardwood-new-parser-for-apache-parquet/
58•rmoff•2d ago•8 comments

MCP server that reduces Claude Code context consumption by 98%

https://mksg.lu/blog/context-mode
459•mksglu•1d ago•92 comments

Pigeons and Planes Has a Website Again

https://www.pigeonsandplanes.com/read/pigeons-and-planes-has-a-website-again
16•herbertl•3d ago•1 comments

Sub-second volumetric 3D printing by synthesis of holographic light fields

https://www.nature.com/articles/s41586-026-10114-5
78•zdw•3d ago•13 comments

Woxi: Wolfram Mathematica Reimplementation in Rust

https://github.com/ad-si/Woxi
307•adamnemecek•3d ago•124 comments

How the Federal Government Is Painting Immigrants as Criminals on Social Media

https://www.npr.org/2026/02/27/nx-s1-5720167/trump-ice-immigration-social-media-deportation-dhs-i...
20•TigerUniversity•53m ago•3 comments

Our Agreement with the Department of War

https://openai.com/index/our-agreement-with-the-department-of-war
335•surprisetalk•17h ago•238 comments

Show HN: Now I Get It – Translate scientific papers into interactive webpages

https://nowigetit.us
255•jbdamask•1d ago•119 comments

Addressing Antigravity Bans and Reinstating Access

https://github.com/google-gemini/gemini-cli/discussions/20632
244•RyanShook•1d ago•205 comments