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•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.

It's OK to abandon your side-project

https://robbowen.digital/wrote-about/abandoned-side-projects/
22•hisamafahri•46m ago•5 comments

Flipdiscs

https://flipdisc.io
230•skogstokig•3d ago•43 comments

I bought Friendster for $30k – Here's what I'm doing with it

https://ca98am79.medium.com/i-bought-friendster-for-30k-heres-what-i-m-doing-with-it-d5e8ddb3991d
774•ca98am79•12h ago•397 comments

TurboQuant: A first-principles walkthrough

https://arkaung.github.io/interactive-turboquant/
143•kweezar•7h ago•29 comments

AI should elevate your thinking, not replace it

https://www.koshyjohn.com/blog/ai-should-elevate-your-thinking-not-replace-it/
473•koshyjohn•12h ago•342 comments

Self-updating screenshots

https://interblah.net/self-updating-screenshots
277•bjhess•1d ago•41 comments

The Prompt API

https://developer.chrome.com/docs/ai/prompt-api
105•gslin•6h ago•65 comments

Bob Odenkirk would like to remind you that life is a meaningless farce

https://www.nytimes.com/2026/04/25/magazine/bob-odenkirk-interview.html
7•wslh•20h ago•2 comments

Three constraints before I build anything

https://jordanlord.co.uk/blog/3-constraints/
201•nervous_north•1d ago•30 comments

When the cheap one is the cool one

https://arun.is/blog/cheap-cool/
117•ddrmaxgt37•1d ago•56 comments

Fast16: High-precision software sabotage 5 years before Stuxnet

https://www.sentinelone.com/labs/fast16-mystery-shadowbrokers-reference-reveals-high-precision-so...
245•dd23•12h ago•52 comments

A Guide to CubeSat Mission and Bus Design

https://pressbooks-dev.oer.hawaii.edu/epet302/
25•o4c•1d ago•2 comments

Box to save memory in Rust

https://dystroy.org/blog/box-to-save-memory/
126•emschwartz•3d ago•31 comments

FreeBSD Device Drivers Book

https://github.com/ebrandi/FDD-book
83•myth_drannon•10h ago•14 comments

Sawe becomes first athlete to run a sub-two-hour marathon in a competitive race

https://www.bbc.com/sport/athletics/articles/crm1m7e0zwzo
380•berkeleyjunk•12h ago•258 comments

SWE-bench Verified no longer measures frontier coding capabilities

https://openai.com/index/why-we-no-longer-evaluate-swe-bench-verified/
297•kmdupree•18h ago•165 comments

The Mushroom That Makes People Have the Exact Same Hallucination

https://www.vice.com/en/article/meet-the-mushroom-that-make-people-have-the-exact-same-hallucinat...
28•thunderbong•1h ago•9 comments

Mystery Cpuid Bit

http://www.os2museum.com/wp/mystery-cpuid-bit/
12•userbinator•2d ago•1 comments

Rust Memory Management: Ownership vs. Reference Counting

https://slicker.me/rust/ownership_and_borrowing_vs_reference_counting.html
4•vinhnx•1d ago•1 comments

Quirks of Human Anatomy

https://www.sdbonline.org/sites/fly/lewheldquirk/figlegq6.htm
132•gurjeet•2d ago•72 comments

Chernobyl wildlife forty years on

https://www.bbc.com/future/article/20260424-chernobyl-wildlife-forty-years-on
105•reconnecting•13h ago•33 comments

Butterflies are in decline across North America, a look at the Western Monarch

https://www.smithsonianmag.com/science-nature/butterflies-are-in-dramatic-decline-across-north-am...
205•1659447091•11h ago•63 comments

Revocation of X.509 Certificates

https://blog.apnic.net/2026/04/24/revocation-of-x-509-certificates/
36•jandeboevrie•1d ago•7 comments

Magic: The Gathering took me from N2 to Japanese fluency

https://www.tokyodev.com/articles/how-magic-the-gathering-took-me-from-n2-to-japanese-fluency
131•pwim•3d ago•57 comments

An AI agent deleted our production database. The agent's confession is below

https://twitter.com/lifeof_jer/status/2048103471019434248
662•jeremyccrane•16h ago•811 comments

EvanFlow – A TDD driven feedback loop for Claude Code

https://github.com/evanklem/evanflow
65•evanklem2004•7h ago•25 comments

Running Bare-Metal Rust Alongside ESP-IDF on the ESP32-S3's Second Core

https://tingouw.com/blog/embedded/esp32/run_rust_on_app_core
67•MrBuddyCasino•3d ago•11 comments

The Military Rockets That Launched the Space Age (2023)

https://airandspace.si.edu/stories/editorial/military-rockets-launched-space-age
8•radeeyate•1d ago•0 comments

Clay PCB Tutorial

https://feministhackerspaces.cargo.site/Clay-PCB-Tutorial
223•j0r0b0•16h ago•131 comments

Show HN: Free textbook on engineering thermodynamics

https://thermodynamicsbook.com/
141•2DcAf•17h ago•36 comments