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.

Two Years of Emacs Solo

https://www.rahuljuliato.com/posts/emacs-solo-two-years
166•celadevra_•6h ago•36 comments

Learnings from paying artists royalties for AI-generated art

https://www.kapwing.com/blog/learnings-from-paying-artists-royalties-for-ai-generated-art/
98•jenthoven•4h ago•69 comments

Optimizing Top K in Postgres

https://www.paradedb.com/blog/optimizing-top-k
29•philippemnoel•1d ago•1 comments

Building a Procedural Hex Map with Wave Function Collapse

https://felixturner.github.io/hex-map-wfc/article/
454•imadr•13h ago•68 comments

Show HN: Remotely use my guitar tuner

https://realtuner.online/
151•smith-kyle•3d ago•37 comments

JSLinux Now Supports x86_64

https://bellard.org/jslinux/
292•TechTechTech•13h ago•81 comments

No, it doesn't cost Anthropic $5k per Claude Code user

https://martinalderson.com/posts/no-it-doesnt-cost-anthropic-5k-per-claude-code-user/
98•jnord•7h ago•45 comments

Lotus 1-2-3 on the PC with DOS

https://stonetools.ghost.io/lotus123-dos/
23•TMWNN•3d ago•1 comments

Is legal the same as legitimate: AI reimplementation and the erosion of copyleft

https://writings.hongminhee.org/2026/03/legal-vs-legitimate/
414•dahlia•15h ago•452 comments

Show HN: I Was Here – Draw on street view, others can find your drawings

https://washere.live
11•mrktsm__•1h ago•0 comments

Darkrealms BBS

http://www.darkrealms.ca/
77•TigerUniversity•3d ago•19 comments

The “JVG algorithm” only wins on tiny numbers

https://scottaaronson.blog/?p=9615
52•jhalderm•6h ago•25 comments

Claude Code, Claude Cowork and Codex #5

https://thezvi.wordpress.com/2026/03/09/claude-code-claude-cowork-and-codex-5/
5•swolpers•1h ago•2 comments

Show HN: DenchClaw – Local CRM on Top of OpenClaw

https://github.com/DenchHQ/DenchClaw
111•kumar_abhirup•15h ago•96 comments

So you want to write an “app” (2025)

https://arcanenibble.github.io/so-you-want-to-write-an-app.html
109•jmusall•9h ago•46 comments

DARPA’s new X-76

https://www.darpa.mil/news/2026/darpa-new-x-76-speed-of-jet-freedom-of-helicopter
186•newer_vienna•13h ago•177 comments

Launch HN: Terminal Use (YC W26) – Vercel for filesystem-based agents

98•filipbalucha•13h ago•66 comments

A useless infinite scroll experiment

https://futile.ch/en/
10•dolin_ch•3d ago•7 comments

RVA23 Ends Speculation's Monopoly in RISC-V CPUs

https://semiwiki.com/ip/risc-v/367094-rva23-ends-speculations-monopoly-in-risc-v-cpus/
11•enz•2d ago•2 comments

OpenAI is walking away from expanding its Stargate data center with Oracle

https://www.cnbc.com/2026/03/09/oracle-is-building-yesterdays-data-centers-with-tomorrows-debt.html
318•spenvo•10h ago•168 comments

Amazon holds engineering meeting following AI-related outages

https://www.ft.com/content/7cab4ec7-4712-4137-b602-119a44f771de
20•petethomas•1h ago•10 comments

An opinionated take on how to do important research that matters

https://nicholas.carlini.com/writing/2026/how-to-win-a-best-paper-award.html
113•mad•14h ago•25 comments

Florida judge rules red light camera tickets are unconstitutional

https://cbs12.com/news/local/florida-news-judge-rules-red-light-camera-tickets-unconstitutional
404•1970-01-01•13h ago•526 comments

Notes on Baking at the South Pole

https://www.newyorker.com/culture/the-weekend-essay/the-most-beautiful-freezer-in-the-world
50•mitchbob•11h ago•17 comments

Graphing how the 10k* most common English words define each other

https://wyattsell.com/experiments/word-graph/
33•wyattsell•2d ago•10 comments

No leap second will be introduced at the end of June 2026

https://lists.iana.org/hyperkitty/list/tz@iana.org/thread/P6D36VZSZBUSSTSMZKFXKF4T4IXWN23P/
97•speckx•18h ago•99 comments

Ireland shuts last coal plant, becomes 15th coal-free country in Europe (2025)

https://www.pv-magazine.com/2025/06/20/ireland-coal-free-ends-coal-power-generation-moneypoint/
926•robin_reala•20h ago•568 comments

Bluesky CEO Jay Graber is stepping down

https://bsky.social/about/blog/03-09-2026-a-new-chapter-for-bluesky
354•minimaxir•11h ago•317 comments

Flash media longevity testing – 6 years later

https://old.reddit.com/r/DataHoarder/comments/1q6xnun/flash_media_longevity_testing_6_years_later/
148•1970-01-01•1d ago•84 comments

The first airplane fatality

https://www.amusingplanet.com/2026/03/thomas-selfridge-first-airplane-fatality.html
78•Hooke•10h ago•19 comments