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.

Mystery donor gives Japanese city $3.6M in gold bars to fix water system

https://www.bbc.com/news/articles/c3ew5jlqz87o
62•tartoran•2h ago•26 comments

MuMu Player (NetEase) silently runs 17 reconnaissance commands every 30 minutes

https://gist.github.com/interpiduser5/547d8a7baec436f24b7cce89dd4ae1ea
240•interpidused•5h ago•96 comments

Defer available in gcc and clang

https://gustedt.wordpress.com/2026/02/15/defer-available-in-gcc-and-clang/
46•r4um•4d ago•13 comments

Consistency diffusion language models: Up to 14x faster, no quality loss

https://www.together.ai/blog/consistency-diffusion-language-models
46•zagwdt•2h ago•6 comments

Gemini 3.1 Pro

https://blog.google/innovation-and-ai/models-and-research/gemini-models/gemini-3-1-pro/
673•MallocVoidstar•15h ago•764 comments

FreeCAD is an open-source parametric 3D modeler

https://www.freecad.org/index.php
33•doener•2d ago•11 comments

An AI Agent Published a Hit Piece on Me – The Operator Came Forward

https://theshamblog.com/an-ai-agent-wrote-a-hit-piece-on-me-part-4/
286•scottshambaugh•4h ago•216 comments

Pi for Excel: AI sidebar add-in for Excel, powered by Pi

https://github.com/tmustier/pi-for-excel
42•rahimnathwani•4h ago•5 comments

Reading the undocumented MEMS accelerometer on Apple Silicon MacBooks via iokit

https://github.com/olvvier/apple-silicon-accelerometer
15•todsacerdoti•1h ago•1 comments

Show HN: Micasa – track your house from the terminal

https://micasa.dev
508•cpcloud•15h ago•165 comments

Show HN: Fostrom, an IoT Cloud Platform built for developers

https://fostrom.io/
3•arjunbajaj•44m ago•0 comments

US plans online portal to bypass content bans in Europe and elsewhere

https://www.reuters.com/world/us-plans-online-portal-bypass-content-bans-europe-elsewhere-2026-02...
259•c420•1d ago•353 comments

A beginner's guide to split keyboards

https://www.justinmklam.com/posts/2026/02/beginners-guide-split-keyboards/
93•thehaikuza•4d ago•105 comments

Fast KV Compaction via Attention Matching

https://arxiv.org/abs/2602.16284
6•cbracketdash•2h ago•0 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
267•guardianbob•16h ago•394 comments

Micropayments as a reality check for news sites

https://blog.zgp.org/micropayments-as-a-reality-check-for-news-sites/
147•speckx•11h ago•322 comments

Lindenmayer.jl: Defining recursive patterns in Julia

https://cormullion.github.io/Lindenmayer.jl/stable/
42•WillMorr•3d ago•2 comments

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

https://github.com/Veirt/weathr
204•forinti•13h ago•35 comments

Almost Every infrastructure decision I endorse or regret after 4 years

https://cep.dev/posts/every-infrastructure-decision-i-endorse-or-regret-after-4-years-running-inf...
165•Meetvelde•3d ago•78 comments

A Famous Enigma: On Alexandre Kojève

https://clereviewofbooks.com/isabel-jacobs-boris-groys-marco-filoni/
8•Caiero•1d ago•0 comments

Paged Out Issue #8 [pdf]

https://pagedout.institute/download/PagedOut_008.pdf
364•SteveHawk27•18h ago•57 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-...
100•bryanrasmussen•12h ago•26 comments

Pebble Production: February Update

https://repebble.com/blog/february-pebble-production-and-software-updates
277•smig0•18h ago•130 comments

Show HN: A small, simple music theory library in C99

https://github.com/thelowsunoverthemoon/mahler.c
29•lowsun•8h ago•6 comments

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

https://github.com/manaflow-ai/cmux
120•lawrencechen•9h ago•58 comments

An ARM Homelab Server, or a Minisforum MS-R1 Review

https://sour.coffee/2026/02/20/an-arm-homelab-server-or-a-minisforum-ms-r1-review/
51•neelc•5h ago•42 comments

My 1981 adventure game is now a multimedia extravaganza

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

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

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

Measuring AI agent autonomy in practice

https://www.anthropic.com/research/measuring-agent-autonomy
95•jbredeche•16h ago•46 comments

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

https://borischerny.com/food/2022/01/17/Dinosaur-food.html
117•simonebrunozzi•15h ago•93 comments