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

Canada's bill C-22 mandates mass metadata surveillance

https://www.michaelgeist.ca/2026/03/a-tale-of-two-bills-lawful-access-returns-with-changes-to-war...
645•opengrass•10h ago•181 comments

How I write software with LLMs

https://www.stavros.io/posts/how-i-write-software-with-llms/
136•indigodaddy•6h ago•71 comments

The 49MB web page

https://thatshubham.com/blog/news-audit
492•kermatt•12h ago•226 comments

Chrome DevTools MCP (2025)

https://developer.chrome.com/blog/chrome-devtools-mcp-debug-your-browser-session
452•xnx•13h ago•190 comments

Electric motor scaling laws and inertia in robot actuators

https://robot-daycare.com/posts/actuation_series_1/
64•o4c•3d ago•13 comments

Kona EV Hacking

http://techno-fandom.org/~hobbit/cars/ev/
19•AnnikaL•4d ago•1 comments

What every computer scientist should know about floating-point arithmetic (1991) [pdf]

https://www.itu.dk/~sestoft/bachelor/IEEE754_article.pdf
47•jbarrow•4d ago•4 comments

LLM Architecture Gallery

https://sebastianraschka.com/llm-architecture-gallery/
373•tzury•16h ago•28 comments

LLMs can be exhausting

https://tomjohnell.com/llms-can-be-absolutely-exhausting/
189•tjohnell•11h ago•143 comments

How far can you go with IX Route Servers only?

https://blog.benjojo.co.uk/post/how-far-can-you-get-with-ix-route-servers
26•ingve•3d ago•1 comments

Stop Sloppypasta

https://stopsloppypasta.ai/
274•namnnumbr•14h ago•122 comments

Separating the Wayland compositor and window manager

https://isaacfreund.com/blog/river-window-management/
283•dpassens•17h ago•134 comments

The Linux Programming Interface as a university course text

https://man7.org/tlpi/academic/index.html
81•teleforce•8h ago•9 comments

SpiceCrypt: A Python library for decrypting LTspice encrypted model files

https://github.com/jtsylve/spice-crypt
33•luu•1d ago•4 comments

//go:fix inline and the source-level inliner

https://go.dev/blog/inliner
144•commotionfever•4d ago•60 comments

The emergence of print-on-demand Amazon paperback books

https://www.alexerhardt.com/en/enshittification-amazon-paperback-books/
145•aerhardt•23h ago•110 comments

Glassworm is back: A new wave of invisible Unicode attacks hits repositories

https://www.aikido.dev/blog/glassworm-returns-unicode-attack-github-npm-vscode
256•robinhouston•19h ago•158 comments

Lies I was told about collaborative editing, Part 2: Why we don't use Yjs

https://www.moment.dev/blog/lies-i-was-told-pt-2
52•antics•3d ago•26 comments

What makes Intel Optane stand out (2023)

https://blog.zuthof.nl/2023/06/02/what-makes-intel-optane-stand-out/
201•walterbell•17h ago•144 comments

Six ingenious ways how Canon DSLRs used to illuminate their autofocus points

https://exclusivearchitecture.com/03-technical-articles-CSDS-00-table-of-contents.html
3•ExAr•23h ago•1 comments

A new Bigfoot documentary helps explain our conspiracy-minded era

https://www.msn.com/en-us/news/us/a-new-bigfoot-documentary-helps-explain-our-conspiracy-minded-e...
62•zdw•10h ago•51 comments

ASCII and Unicode quotation marks (2007)

https://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
15•exvi•4h ago•5 comments

A Visual Introduction to Machine Learning (2015)

https://r2d3.us/visual-intro-to-machine-learning-part-1/
356•vismit2000•21h ago•30 comments

Bus travel from Lima to Rio de Janeiro

https://kenschutte.com/lima-to-rio-by-bus/
159•ks2048•4d ago•65 comments

Federal Right to Privacy Act – Draft legislation

https://righttoprivacyact.github.io
70•pilingual•6h ago•41 comments

Cannabinoids remove plaque-forming Alzheimer's proteins from brain cells (2016)

https://www.salk.edu/news-release/cannabinoids-remove-plaque-forming-alzheimers-proteins-from-bra...
110•anjel•7h ago•68 comments

Learning athletic humanoid tennis skills from imperfect human motion data

https://zzk273.github.io/LATENT/
149•danielmorozoff•16h ago•31 comments

Bandit: A 32bit baremetal computer that runs Color Forth [video]

https://www.youtube.com/watch?v=HK0uAKkt0AE
60•surprisetalk•3d ago•3 comments

Nasdaq's Shame

https://keubiko.substack.com/p/nasdaqs-shame
304•imichael•10h ago•99 comments

In Memoriam: John W. Addison, my PhD advisor

https://billwadge.com/2026/03/15/in-memoriam-john-w-addison-jr-my-phd-advisor/
119•herodotus•16h ago•4 comments