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

Windows 9x Subsystem for Linux

https://social.hails.org/@hailey/116446826733136456
589•sohkamyung•6h ago•146 comments

Qwen3.6-27B: Flagship-Level Coding in a 27B Dense Model

https://qwen.ai/blog?id=qwen3.6-27b
150•mfiguiere•3h ago•76 comments

Our eighth generation TPUs: two chips for the agentic era

https://blog.google/innovation-and-ai/infrastructure-and-cloud/google-cloud/eighth-generation-tpu...
213•xnx•4h ago•111 comments

3.4M Solar Panels

https://tech.marksblogg.com/american-solar-farms-v2.html
189•marklit•4h ago•117 comments

Treetops glowing during storms captured on film for first time

https://www.psu.edu/news/earth-and-mineral-sciences/story/treetops-glowing-during-storms-captured...
97•t-3•2h ago•20 comments

GitHub CLI now collects pseudoanonymous telemetry

https://cli.github.com/telemetry
238•ingve•4h ago•184 comments

Show HN submissions tripled and now mostly have the same vibe-coded look

https://www.adriankrebs.ch/blog/design-slop/
149•hubraumhugo•1h ago•130 comments

Columnar Storage Is Normalization

https://buttondown.com/jaffray/archive/columnar-storage-is-normalization/
53•ibobev•3h ago•21 comments

Making RAM at Home [video]

https://www.youtube.com/watch?v=h6GWikWlAQA
515•kaipereira•1d ago•145 comments

ChatGPT Images 2.0

https://openai.com/index/introducing-chatgpt-images-2-0/
960•wahnfrieden•21h ago•842 comments

How does GPS work?

https://perthirtysix.com/how-the-heck-does-gps-work
146•alfanick•6h ago•32 comments

Another Day Has Come

https://daringfireball.net/2026/04/another_day_has_come
107•ndr42•19h ago•90 comments

Windows 9x Subsystem for Linux

https://codeberg.org/hails/wsl9x
4•luu•26m ago•1 comments

DuckDB 1.5.2 – SQL database that runs on laptop, server, in the browser

https://duckdb.org/2026/04/13/announcing-duckdb-152
50•janandonly•1h ago•10 comments

XOR'ing a register with itself is the idiom for zeroing it out. Why not sub?

https://devblogs.microsoft.com/oldnewthing/20260421-00/?p=112247
136•ingve•9h ago•150 comments

Bodega Cats of New York

https://bodegacatsofnewyork.com
9•zdw•4d ago•0 comments

MuJoCo – Advanced Physics Simulation

https://github.com/google-deepmind/mujoco
81•modinfo•3d ago•16 comments

Prefill-as-a-Service:KVCache of Next-Generation Models Could Go Cross-Datacenter

https://arxiv.org/abs/2604.15039
32•matt_d•3d ago•1 comments

Expansion Artifacts

https://mattstromawn.com/writing/expansion-artifacts/
20•tobr•1d ago•1 comments

Kernel code removals driven by LLM-created security reports

https://lwn.net/Articles/1068928/
78•edward•4h ago•65 comments

Nobody Got Fired for Uber's $8M Ledger Mistake?

https://news.alvaroduran.com/p/nobody-got-fired-for-ubers-8-million
96•ohduran•5h ago•67 comments

Drunk post: Things I've learned as a senior engineer (2021)

https://luminousmen.substack.com/p/drunk-post-things-ive-learned-as
249•zdw•16h ago•181 comments

Contact Lens Uses Microfluidics to Monitor and Treat Glaucoma

https://spectrum.ieee.org/smart-contact-lens-glaucoma-microfluidics
81•pseudolus•3d ago•2 comments

All your agents are going async

https://zknill.io/posts/all-your-agents-are-going-async/
104•zknill•2d ago•65 comments

Garbage Collection Without Unsafe Code

https://fitzgen.com/2024/02/06/safe-gc.html
91•foota•3d ago•36 comments

The Vercel breach: OAuth attack exposes risk in platform environment variables

https://www.trendmicro.com/en_us/research/26/d/vercel-breach-oauth-supply-chain.html
353•queenelvis•23h ago•115 comments

Windows Server 2025 Runs Better on ARM

https://jasoneckert.github.io/myblog/server-2025-arm64/
165•jasoneckert•3d ago•126 comments

Acetaminophen vs. ibuprofen

https://asteriskmag.com/issues/14/the-mystery-in-the-medicine-cabinet
597•nkurz•2d ago•387 comments

SpaceX says it has agreement to acquire Cursor for $60B

https://twitter.com/spacex/status/2046713419978453374
753•dmarcos•18h ago•901 comments

CATL's new LFP battery can charge from 10 to 98% in less than 7 minutes

https://arstechnica.com/cars/2026/04/catls-new-lfp-battery-can-charge-from-10-to-98-in-less-than-...
106•PotatoNinja•5h ago•53 comments