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.

Your Website Is Not for You

https://websmith.studio/blog/your-website-is-not-for-you/
81•pumbaa•2h ago•48 comments

Running Adobe's 1991 PostScript Interpreter in the Browser

https://www.pagetable.com/?p=1854
22•ingve•1h ago•6 comments

Show HN: Site Mogging

https://sitemogging.com
21•jilles•1h ago•17 comments

Apple accidentally left Claude.md files Apple Support app

https://xcancel.com/aaronp613/status/2049986504617820551
86•andruby•2h ago•37 comments

Show HN: Perfect Bluetooth MIDI for Windows

51•mayerwin•3h ago•10 comments

How Mark Klein told the EFF about Room 641A [book excerpt]

https://thereader.mitpress.mit.edu/the-whistleblower-who-uncovered-the-nsas-big-brother-machine/
634•the-mitr•20h ago•215 comments

Show HN: WhatCable, a tiny menu bar app for inspecting USB-C cables

https://github.com/darrylmorley/whatcable
182•sleepingNomad•4h ago•65 comments

Grok 4.3

https://docs.x.ai/developers/models/grok-4.3
168•simianwords•4h ago•227 comments

New copy of earliest poem in English, written 1,3k years ago, discovered in Rome

https://www.tcd.ie/news_events/articles/2026/caedmons-hymn-discovery/
99•giuliomagnifico•2d ago•62 comments

For Linux kernel vulnerabilities, there is no heads-up to distributions

https://www.openwall.com/lists/oss-security/2026/04/30/10
538•ori_b•20h ago•435 comments

If I could make my own GitHub

https://matduggan.com/if-i-could-make-my-own-github/
37•matricaria•23h ago•75 comments

OpenWarp

https://openwarp.zerx.dev
120•zero-lab•11h ago•99 comments

Shai-Hulud Themed Malware Found in the PyTorch Lightning AI Training Library

https://semgrep.dev/blog/2026/malicious-dependency-in-pytorch-lightning-used-for-ai-training/
411•j12y•21h ago•153 comments

Opus 4.7 knows the real Kelsey

https://www.theargumentmag.com/p/i-can-never-talk-to-an-ai-anonymously
381•ilamont•1d ago•200 comments

Softmax, can you derive the Jacobian? And should you care?

https://idlemachines.co.uk/essays/softmax
69•smaddrellmander•3d ago•10 comments

Advanced Quantization Algorithm for LLMs

https://github.com/intel/auto-round
9•lastdong•4h ago•1 comments

Maladaptive Frugality

https://herbertlui.net/maladaptive-frugality/
130•herbertl•2d ago•108 comments

A beginner's guide to Sourcehut (2025)

https://btxx.org/posts/beginners-guide-sourcehut/
33•bradley_taunt•2h ago•9 comments

After dissing Anthropic for limiting Mythos, OpenAI restricts access to Cyber

https://techcrunch.com/2026/04/30/after-dissing-anthropic-for-limiting-mythos-openai-restricts-ac...
80•gbourne1•2h ago•59 comments

How an oil refinery works

https://www.construction-physics.com/p/how-an-oil-refinery-works
449•chmaynard•23h ago•140 comments

Claude Code refuses requests or charges extra if your commits mention "OpenClaw"

https://twitter.com/theo/status/2049645973350363168
1211•elmean•22h ago•666 comments

The Rotary Un-Smartphone (2023)

https://skysedge.com/telecom/RUSP/index.html
43•tzury•3h ago•8 comments

CPanel and WHM Authentication Bypass – CVE-2026-41940

https://labs.watchtowr.com/the-internet-is-falling-down-falling-down-falling-down-cpanel-whm-auth...
123•zikani_03•14h ago•48 comments

Our agent found a bug with WireGuard in Google Kubernetes Engine

https://lovable.dev/blog/hunting-networking-bugs-in-kubernetes
32•vikeri•4h ago•3 comments

I Got Sick of Remembering Port Numbers

https://gregraiz.com/blog/local-vibe/
96•graiz•2d ago•88 comments

I built a Game Boy emulator in F#

https://nickkossolapov.github.io/fame-boy/building-a-game-boy-emulator-in-fsharp/
295•elvis70•19h ago•68 comments

Can I disable all data collection from my vehicle?

https://rivian.com/support/article/can-i-disable-all-data-collection-from-my-vehicle
651•Cider9986•16h ago•275 comments

Auto Polo

https://en.wikipedia.org/wiki/Auto_polo
77•canjobear•2d ago•21 comments

Roboticist-Turned-Teacher Built a Life-Size Replica of Eniac

https://spectrum.ieee.org/roboticist-turned-teacher-eniac-replica
40•oldnetguy•1d ago•8 comments

You can beat the binary search

https://lemire.me/blog/2026/04/27/you-can-beat-the-binary-search/
336•vok•3d ago•145 comments