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

Gemini 3.1 Pro

https://blog.google/innovation-and-ai/models-and-research/gemini-models/gemini-3-1-pro/
383•MallocVoidstar•7h ago•626 comments

Show HN: Micasa – track your house from the terminal

https://micasa.dev
352•cpcloud•7h ago•110 comments

Micropayments as a reality check for news sites

https://blog.zgp.org/micropayments-as-a-reality-check-for-news-sites/
79•speckx•3h ago•169 comments

Show HN: Ghostty-based terminal with vertical tabs and notifications

https://github.com/manaflow-ai/cmux
48•lawrencechen•1h ago•21 comments

A terminal weather app with ASCII animations driven by real-time weather data

https://github.com/Veirt/weathr
126•forinti•5h ago•18 comments

We're no longer attracting top talent: the brain drain killing American science

https://www.theguardian.com/us-news/2026/feb/19/trump-science-funding-cuts
161•mitchbob•2h ago•91 comments

America vs. Singapore: You can't save your way out of economic shocks

https://www.governance.fyi/p/america-vs-singapore-you-cant-save
187•guardianbob•8h ago•253 comments

Archaeologists find possible first direct evidence of Hannibal's war elephants

https://www.smithsonianmag.com/smart-news/archaeologists-unearthed-a-2200-year-old-bone-they-say-...
64•bryanrasmussen•4h ago•14 comments

A Beginner's Guide to Split Keyboards

https://www.justinmklam.com/posts/2026/02/beginners-guide-split-keyboards/
14•thehaikuza•3d ago•12 comments

Pebble Production: February Update

https://repebble.com/blog/february-pebble-production-and-software-updates
247•smig0•10h ago•116 comments

Paged Out Issue #8 [pdf]

https://pagedout.institute/download/PagedOut_008.pdf
279•SteveHawk27•10h ago•46 comments

Dinosaur Food: 100M year old foods we still eat today (2022)

https://borischerny.com/food/2022/01/17/Dinosaur-food.html
87•simonebrunozzi•7h ago•74 comments

Minnesota judge holds federal attorney in civil contempt

https://www.cnn.com/2026/02/19/politics/trump-attorney-contempt-minnesota-immigration
44•rawgabbit•55m ago•1 comments

A psychedelic medicine performs well against depression

https://www.economist.com/science-and-technology/2026/02/19/a-psychedelic-medicine-performs-well-...
40•vinni2•1h ago•29 comments

Single vaccine could protect against all coughs, colds and flus

https://www.bbc.com/news/articles/cx2g8rz7yedo
42•dabinat•54m ago•11 comments

AI is not a coworker, it's an exoskeleton

https://www.kasava.dev/blog/ai-as-exoskeleton
91•benbeingbin•3h ago•103 comments

Overall, the colorectal cancer story is encouraging

https://www.hankgreen.com/crc
76•ZeroGravitas•2h ago•69 comments

My 1981 adventure game is now a multimedia extravaganza

https://technologizer.com/home/2026/02/16/arctic-adventure-2026/
43•vontzy•3d ago•10 comments

Don't Trust the Salt: AI Summarization, Multilingual Safety, and LLM Guardrails

https://royapakzad.substack.com/p/multilingual-llm-evaluation-to-guardrails
169•benbreen•3d ago•69 comments

Measuring AI agent autonomy in practice

https://www.anthropic.com/research/measuring-agent-autonomy
68•jbredeche•8h ago•30 comments

Show HN: A physically-based GPU ray tracer written in Julia

https://makie.org/website/blogposts/raytracing/
155•simondanisch•12h ago•55 comments

HUD proposes rule that would force noncitizens from public housing

https://www.washingtonpost.com/national/2026/02/19/hud-public-housing-mixed-status-immigration/03...
11•geox•24m ago•2 comments

AI makes you boring

https://www.marginalia.nu/log/a_132_ai_bores/
469•speckx•4h ago•270 comments

Coding Tricks Used in the C64 Game Seawolves (2025)

https://kodiak64.co.uk/blog/seawolves-technical-tricks
113•atan2•10h ago•12 comments

Show HN: Mini-Diarium - An encrypted, local, cross-platform journaling app

https://github.com/fjrevoredo/mini-diarium
103•holyknight•11h ago•48 comments

Mark Zuckerberg grilled on usage goals and underage users at California trial

https://www.wsj.com/us-news/law/meta-mark-zuckerberg-social-media-trial-0e9a7fa0
143•1vuio0pswjnm7•6h ago•82 comments

California's new bill requires DOJ-approved 3D printers that report themselves

https://blog.adafruit.com/2026/02/19/californias-new-bill-requires-doj-approved-3d-printers-that-...
206•fortran77•3h ago•214 comments

Farewell, Rust for web

https://yieldcode.blog/post/farewell-rust/
99•skwee357•4h ago•87 comments

Zero downtime migrations at petabyte scale (2024)

https://planetscale.com/blog/zero-downtime-migrations-at-petabyte-scale
68•Ozzie_osman•3d ago•13 comments

Bridging Elixir and Python with Oban

https://oban.pro/articles/bridging-with-oban
114•sorentwo•11h ago•51 comments