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

Comments

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

The curious case of retro demo scene graphics

https://www.datagubbe.se/aipixels/
42•zdw•1h ago•5 comments

ChatGPT won't let you type until Cloudflare reads your React state

https://www.buchodi.com/chatgpt-wont-let-you-type-until-cloudflare-reads-your-react-state-i-decry...
507•alberto-m•10h ago•342 comments

Copilot edited an ad into my PR

https://notes.zachmanson.com/copilot-edited-an-ad-into-my-pr/
280•pavo-etc•2h ago•80 comments

VHDL's Crown Jewel

https://www.sigasi.com/opinion/jan/vhdls-crown-jewel/
19•cokernel_hacker•2h ago•8 comments

Voyager 1 runs on 69 KB of memory and an 8-track tape recorder

https://techfixated.com/a-1977-time-capsule-voyager-1-runs-on-69-kb-of-memory-and-an-8-track-tape...
482•speckx•14h ago•184 comments

15 Years of Forking

https://www.waterfox.com/blog/15-years-of-forking/
133•MrAlex94•2d ago•12 comments

Philly courts will ban all smart eyeglasses starting next week

https://www.inquirer.com/news/philadelphia/smart-glasses-ai-meta-courts-20260326.html
188•Philadelphia•5h ago•67 comments

15 years, one server, 8GB RAM and 500k users – how Webminal refuses to die

https://community.webminal.org/t/15-years-one-server-8gb-ram-and-500k-users-how-webminal-refuses-...
16•giis•37m ago•2 comments

HD Audio Driver for Windows 98SE / Me

https://github.com/andrew-hoffman/wdmhda
20•userbinator•1h ago•2 comments

Gonon: Building a Clock with No Numerals

https://tonygaeta.com/perceptor/code/gonon
16•nullpath•3d ago•10 comments

Hardware Image Compression

https://www.ludicon.com/castano/blog/2026/03/hardware-image-compression/
11•luu•1d ago•2 comments

Pretext: TypeScript library for multiline text measurement and layout

https://github.com/chenglou/pretext
272•emersonmacro•1d ago•47 comments

"Roadrunner": a bipedal, wheeled robot for multi-modal locomotion [video]

https://www.youtube.com/watch?v=9kae-UAME1U
20•surprisetalk•4d ago•7 comments

The Cognitive Dark Forest

https://ryelang.org/blog/posts/cognitive-dark-forest/
386•kaycebasques•11h ago•179 comments

Eclipse GlassFish: This Isn't Your Father's GlassFish

https://foojay.io/today/eclipse-glassfish-this-isnt-your-fathers-glassfish/
7•henk53•4d ago•1 comments

Interview: Nobonoko, Master of the Minimal Sequencer

https://fi-le.net/nobo/
21•fi-le•2d ago•2 comments

Coding Agents Could Make Free Software Matter Again

https://www.gjlondon.com/blog/ai-agents-could-make-free-software-matter-again/
151•rogueleaderr•8h ago•131 comments

About the Atmosphere

https://toni.org/2026/03/27/about-the-atmosphere/
48•Kye•2d ago•8 comments

My MacBook keyboard is broken and it's insanely expensive to fix

https://tobiasberg.net/posts/my-macbook-keyboard-is-broken-and-its-insanely-expensive-to-fix/
140•TobiasBerg•11h ago•166 comments

New Apple Silicon M4 and M5 HiDPI Limitation on 4K External Displays

https://smcleod.net/2026/03/new-apple-silicon-m4-m5-hidpi-limitation-on-4k-external-displays/
227•smcleod•5h ago•108 comments

Moretti replication published in AER

https://blog.michaelwiebe.com/p/moretti-replication-published-in
7•luu•1d ago•0 comments

The road signs that teach travellers about France

https://www.bbc.com/travel/article/20260327-the-road-signs-that-teach-travellers-about-france
81•1659447091•10h ago•36 comments

C++26 is done ISO C++ standards meeting, Trip Report

https://herbsutter.com/2026/03/29/c26-is-done-trip-report-march-2026-iso-c-standards-meeting-lond...
207•pjmlp•13h ago•169 comments

LinkedIn uses 2.4 GB RAM across two tabs

696•hrncode•21h ago•399 comments

The RISE RISC-V Runners: free, native RISC-V CI on GitHub

https://riseproject.dev/2026/03/24/announcing-the-rise-risc-v-runners-free-native-risc-v-ci-on-gi...
130•thebeardisred•3d ago•34 comments

More on Version Control

https://bramcohen.com/p/more-on-version-control
66•velmu•11h ago•21 comments

Ohm's Peg-to-WASM Compiler

https://ohmjs.org/blog/2026/03/12/peg-to-wasm
48•azhenley•3d ago•16 comments

Kyushu Railway Company Train Varieties

https://www.jrkyushu.co.jp/english/train/index.html
75•NaOH•11h ago•11 comments

Nitrile and latex gloves may cause overestimation of microplastics

https://news.umich.edu/nitrile-and-latex-gloves-may-cause-overestimation-of-microplastics-u-m-stu...
537•giuliomagnifico•20h ago•242 comments

Neovim 0.12.0

https://github.com/neovim/neovim/releases/tag/v0.12.0
347•pawelgrzybek•13h ago•192 comments