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.

Corruption erodes social trust more in democracies than in autocracies

https://www.frontiersin.org/journals/political-science/articles/10.3389/fpos.2026.1779810/full
94•PaulHoule•4h ago•30 comments

Polymarket gamblers threaten to kill me over Iran missile story

https://www.timesofisrael.com/gamblers-trying-to-win-a-bet-on-polymarket-are-vowing-to-kill-me-if...
242•defly•4h ago•134 comments

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...
814•opengrass•18h ago•240 comments

The "are you sure?" Problem: Why AI keeps changing its mind

https://www.randalolson.com/2026/02/07/the-are-you-sure-problem-why-your-ai-keeps-changing-its-mind/
13•turoczy•21h ago•14 comments

How I write software with LLMs

https://www.stavros.io/posts/how-i-write-software-with-llms/
299•indigodaddy•14h ago•243 comments

The 49MB web page

https://thatshubham.com/blog/news-audit
647•kermatt•20h ago•290 comments

Chrome DevTools MCP (2025)

https://developer.chrome.com/blog/chrome-devtools-mcp-debug-your-browser-session
522•xnx•20h ago•209 comments

Nango (YC W23, API Access for Agents and Apps) Is Hiring

https://jobs.ashbyhq.com/Nango
1•bastienbeurier•3h ago

Home Assistant waters my plants

https://finnian.io/blog/home-assistant-waters-my-plants/
86•finniananderson•4d ago•34 comments

Electric motor scaling laws and inertia in robot actuators

https://robot-daycare.com/posts/actuation_series_1/
113•o4c•4d ago•20 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
63•ExAr•1d ago•15 comments

Stop Sloppypasta

https://stopsloppypasta.ai/
444•namnnumbr•22h ago•181 comments

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

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

LLM Architecture Gallery

https://sebastianraschka.com/llm-architecture-gallery/
459•tzury•23h ago•34 comments

LLMs can be exhausting

https://tomjohnell.com/llms-can-be-absolutely-exhausting/
256•tjohnell•19h ago•171 comments

Kona EV Hacking

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

Why Are Viral Capsids Icosahedral?

https://www.asimov.press/p/viral-capsids
19•surprisetalk•4d ago•0 comments

Scientists discover a surprising way to quiet the anxious mind (2025)

https://www.sciencedaily.com/releases/2025/10/251027023816.htm
32•carlos-menezes•4h ago•29 comments

Reviewing Large Changes with Jujutsu

https://ben.gesoff.uk/posts/reviewing-large-changes-with-jj/
35•bengesoff•4d ago•4 comments

Separating the Wayland compositor and window manager

https://isaacfreund.com/blog/river-window-management/
317•dpassens•1d ago•174 comments

The Accidental Room (2018)

https://99percentinvisible.org/episode/the-accidental-room/
44•blewboarwastake•2d ago•5 comments

The Linux Programming Interface as a university course text

https://man7.org/tlpi/academic/index.html
123•teleforce•16h ago•20 comments

The emergence of print-on-demand Amazon paperback books

https://www.alexerhardt.com/en/enshittification-amazon-paperback-books/
182•aerhardt•1d ago•143 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
283•robinhouston•1d ago•169 comments

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

https://go.dev/blog/inliner
173•commotionfever•4d ago•69 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
47•ingve•4d ago•3 comments

Bus travel from Lima to Rio de Janeiro

https://kenschutte.com/lima-to-rio-by-bus/
202•ks2048•4d ago•76 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
116•antics•3d ago•61 comments

What makes Intel Optane stand out (2023)

https://blog.zuthof.nl/2023/06/02/what-makes-intel-optane-stand-out/
213•walterbell•1d ago•149 comments

A Visual Introduction to Machine Learning (2015)

https://r2d3.us/visual-intro-to-machine-learning-part-1/
374•vismit2000•1d ago•31 comments