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

Comments

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

Learnings from 100K lines of Rust with AI (2025)

https://zfhuang99.github.io/rust/claude%20code/codex/contracts/spec-driven%20development/2025/12/...
46•pramodbiligiri•1h ago•27 comments

Everything in C is undefined behavior

https://blog.habets.se/2026/05/Everything-in-C-is-undefined-behavior.html
238•lycopodiopsida•5h ago•312 comments

Gemini 3.5 Flash

https://blog.google/innovation-and-ai/models-and-research/gemini-models/gemini-3-5/
825•spectraldrift•17h ago•570 comments

FiveThirtyEight articles on the Internet Archive

https://fivethirtyeightindex.com/
226•ChocMontePy•9h ago•54 comments

The weird, wild story of humanity's obsession with gold

https://www.economist.com/culture/2026/05/14/the-weird-wild-story-of-humanitys-obsession-with-gold
13•andsoitis•2h ago•13 comments

Map of Metal

https://mapofmetal.com/
10•robin_reala•43m ago•1 comments

I’ve built a virtual museum with nearly every operating system you can think of

https://virtualosmuseum.org/
807•andreww591•19h ago•174 comments

Japan is gripped by mass allergies. A 1950s project is to blame

https://www.bbc.com/future/article/20260515-the-1950s-blunder-which-causes-mass-hay-fever-in-japan
139•ranit•9h ago•63 comments

Infomaniak transitions to a foundation model to protect user data privacy

https://news.infomaniak.com/en/infomaniak-foundation-sovereign-cloud/
92•darktoto•5h ago•24 comments

Google changes its search box

https://blog.google/products-and-platforms/products/search/search-io-2026/
575•berkeleyjunk•16h ago•764 comments

Show HN: Forge – Guardrails take an 8B model from 53% to 99% on agentic tasks

https://github.com/antoinezambelli/forge
517•zambelli•23h ago•178 comments

Remove-AI-Watermarks – CLI and library for removing AI watermarks from images

https://github.com/wiltodelta/remove-ai-watermarks
303•janalsncm•13h ago•178 comments

Apple unveils new accessibility features

https://www.apple.com/newsroom/2026/05/apple-unveils-new-accessibility-features-and-updates-with-...
682•interpol_p•23h ago•353 comments

OpenAI Adopts Google's SynthID Watermark for AI Images with Verification Tool

https://openai.com/index/advancing-content-provenance/
293•smooke•15h ago•157 comments

Mistral AI acquires Emmi AI

https://www.emmi.ai/news/mistral-ai-acquires-emmi-ai
269•doener•16h ago•82 comments

Gemini CLI will stop working from June 18, 2026

https://developers.googleblog.com/an-important-update-transitioning-gemini-cli-to-antigravity-cli/
248•primaprashant•17h ago•127 comments

Incident Report: Railway Blocked by Google Cloud (Resolved)

https://blog.railway.com/p/incident-report-may-19-2026-gcp-account-outage
486•aarondf•11h ago•311 comments

In 1979 engineer Hugh Padgham discovered "gated reverb" – by accident

https://producelikeapro.com/blog/how-one-recording-mistake-created-a-musical-phenomenon-in-the-80s/
54•bookofjoe•2d ago•17 comments

CopyFail: From Pod to Host

https://xint.io/blog/copy-fail-pod-to-host
25•tptacek•18h ago•4 comments

Simulated Evolution on the PICO-8

https://bumbershootsoft.wordpress.com/2026/05/16/simulated-evolution-on-the-pico-8/
16•ibobev•1d ago•0 comments

The Invention of Buses

https://worksinprogress.co/issue/the-invention-of-buses/
5•surprisetalk•1d ago•0 comments

RISC-V and Floating-Point

https://fprox.substack.com/p/risc-v-and-floating-point
24•hasheddan•1d ago•21 comments

GitHub is investigating unauthorized access to their internal repositories

https://twitter.com/github/status/2056884788179726685
481•splenditer•11h ago•253 comments

Minnesota becomes first state to ban prediction markets

https://www.npr.org/2026/05/19/nx-s1-5821265/minnesota-ban-prediction-markets
683•ortusdux•16h ago•209 comments

The Mercury logic programming system

https://github.com/Mercury-Language/mercury
70•Antibabelic•2d ago•15 comments

Nostalgic Kits Central (2024)

https://www.nostalgickitscentral.com/
25•cf100clunk•2d ago•12 comments

Growing Neural Cellular Automata

https://distill.pub/2020/growing-ca/
118•pulkitsh1234•2d ago•12 comments

I’ve joined Anthropic

https://twitter.com/karpathy/status/2056753169888334312
1343•dmarcos•20h ago•560 comments

Lisp in Web-Based Applications (2001)

https://sep.turbifycdn.com/ty/cdn/paulgraham/bbnexcerpts.txt
86•bschne•1d ago•7 comments

Enabling Resizable Bar on RTX 3080 Vbios via GitHub

https://github.com/danindiana/rtx3080-rebar-vbios/tree/master
4•linux_lorax•2d ago•3 comments