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•6mo ago

Comments

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

New Pebble Device

https://repebble.com/blog/meet-pebble-index-01-external-memory-for-your-brain
18•freshrap6•19m ago•3 comments

Kaiju – General purpose 3D/2D game engine in Go and Vulkan with built in editor

https://github.com/KaijuEngine/kaiju
17•discomrobertul8•31m ago•3 comments

LLM from scratch, part 28 – training a base model from scratch on an RTX 3090

https://www.gilesthomas.com/2025/12/llm-from-scratch-28-training-a-base-model-from-scratch
281•gpjt•6d ago•47 comments

Engineers: Stop trying to win other people's game

https://www.anthonyputignano.com/p/the-western-front-advantage-how-junior
9•anthonyp•29m ago•2 comments

Show HN: AlgoDrill – Interactive drills to stop forgetting LeetCode patterns

https://algodrill.io
79•henwfan•4h ago•54 comments

The Joy of Playing Grandia, on Sega Saturn

https://www.segasaturnshiro.com/2025/11/27/the-joy-of-playing-grandia-on-sega-saturn/
111•tosh•5h ago•56 comments

Transformers know more than they can tell: Learning the Collatz sequence

https://www.arxiv.org/pdf/2511.10811
47•Xcelerate•5d ago•21 comments

Constructing the Word's First JPEG XL MD5 Hash Quine

https://stackchk.fail/blog/jxl_hashquine_writeup
36•luispa•1w ago•9 comments

Apple's Slow AI Pace Becomes a Strength as Market Grows Weary of Spending

https://finance.yahoo.com/news/apple-slow-ai-pace-becomes-104658095.html
15•bgwalter•14m ago•5 comments

Icons in Menus Everywhere – Send Help

https://blog.jim-nielsen.com/2025/icons-in-menus/
675•ArmageddonIt•19h ago•288 comments

The Gamma Language

https://lair.masot.net/gamma/
11•RossBencina•3d ago•0 comments

Brent's Encapsulated C Programming Rules (2020)

https://retroscience.net/brents-c-programming-rules.html
28•p2detar•4h ago•15 comments

A deep dive into QEMU: The Tiny Code Generator (TCG), part 1 (2021)

https://airbus-seclab.github.io/qemu_blog/tcg_p1.html
41•costco•1w ago•2 comments

ZX Spectrum Next on the Internet: Xberry Pi ESP01 and Pi Zero Upgrades

https://retrogamecoders.com/zx-spectrum-next-on-the-internet-xberry-pi-esp01-and-pi-zero-upgrades/
26•ibobev•4h ago•0 comments

Epsilon: A WASM virtual machine written in Go

https://github.com/ziggy42/epsilon
92•ziggy42•1w ago•27 comments

The universal weight subspace hypothesis

https://arxiv.org/abs/2512.05117
324•lukeplato•15h ago•114 comments

Kroger acknowledges that its bet on robotics went too far

https://www.grocerydive.com/news/kroger-ocado-close-automated-fulfillment-centers-robotics-grocer...
219•JumpCrisscross•15h ago•224 comments

30 Year Anniversary of WarCraft II: Tides of Darkness

https://www.jorsys.org/archive/december_2025.html#newsitem_2025-12-09T07:42:19Z
34•sjoblomj•6h ago•16 comments

No ARIA is better than bad ARIA

https://www.w3.org/WAI/ARIA/apg/practices/read-me-first/
107•robin_reala•6d ago•67 comments

Show HN: I built a system for active note-taking in regular meetings like 1-1s

https://withdocket.com
122•davnicwil•17h ago•101 comments

Manual: Spaces

https://type.today/en/journal/spaces
91•doener•15h ago•13 comments

Jepsen: NATS 2.12.1

https://jepsen.io/analyses/nats-2.12.1
397•aphyr•20h ago•147 comments

Strong earthquake hits northern Japan, tsunami warning issued

https://www3.nhk.or.jp/nhkworld/en/news/20251209_02/
335•lattis•1d ago•154 comments

Mazda suitcase car, a portable three-wheeled vehicle that fits in the luggage

https://www.designboom.com/technology/rediscover-mazda-suitcase-car-portable-three-wheeled-vehicl...
48•tlyleung•3h ago•27 comments

Microsoft increases Office 365 and Microsoft 365 license prices

https://office365itpros.com/2025/12/08/microsoft-365-pricing-increase/
430•taubek•1d ago•505 comments

Has the cost of building software dropped 90%?

https://martinalderson.com/posts/has-the-cost-of-software-just-dropped-90-percent/
350•martinald•20h ago•532 comments

Let's put Tailscale on a jailbroken Kindle

https://tailscale.com/blog/tailscale-jailbroken-kindle
308•Quizzical4230•22h ago•77 comments

Launch HN: Nia (YC S25) – Give better context to coding agents

https://www.trynia.ai/
123•jellyotsiro•22h ago•77 comments

IBM to acquire Confluent

https://www.confluent.io/blog/ibm-to-acquire-confluent/
424•abd12•1d ago•339 comments

Trials avoid high risk patients and underestimate drug harms

https://www.nber.org/papers/w34534
150•bikenaga•20h ago•48 comments