frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Right-Truncatable Prime Counter

https://github.com/EbodShojaei/Right-Truncatable-Primes
9•rainmans•1y ago

Comments

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

Hyundai buys Boston Dynamics

https://startupfortune.com/hyundai-takes-full-control-of-boston-dynamics-as-softbank-exits-for-32...
374•ck2•3h ago•185 comments

Amateur may have cracked Linear A, a 120-year-old puzzle

https://aiclambake.com/clamtakes/linear-a/
259•Kosturdistan•4h ago•112 comments

There Are No Instances in ATProto

https://overreacted.io/there-are-no-instances-in-atproto/
207•danabramov•4h ago•132 comments

Project Valhalla, Explained: How a Decade of Work Arrives in JDK 28

https://www.jvm-weekly.com/p/project-valhalla-explained-how-a
491•philonoist•13h ago•286 comments

A new bill takes aim at government pressure to silence lawful online speech

https://www.eff.org/deeplinks/2026/06/new-bill-takes-aim-government-pressure-silence-lawful-onlin...
127•hn_acker•2h ago•59 comments

Google workspace threatening to block Firefox access

https://tales.fromprod.com/2026/169/google-workspace-threatening-to-block-firefox.html
242•birdculture•3h ago•81 comments

This 1976 University Experiment Spun Up the U.S. Wind Industry

https://spectrum.ieee.org/william-heronemus-wind-energy
32•pseudolus•4d ago•1 comments

DuckDB Internals: Why Is DuckDB Fast? (Part 1)

https://www.greybeam.ai/blog/duckdb-internals-part-1
385•marklit•3d ago•123 comments

I used sound waves to make espresso. It could cut coffee‑brewing energy use by ¾

https://theconversation.com/i-used-sound-waves-to-make-espresso-it-could-cut-coffee-brewing-energ...
66•zeristor•6d ago•52 comments

Telescope Ranchers

https://kottke.org/26/06/telescope-ranchers
62•bookofjoe•3d ago•23 comments

Ten years of ClickHouse in open source

https://clickhouse.com/blog/open-source-10
239•saisrirampur•3d ago•67 comments

Zen and the Art of Machine Learning Research

https://blog.jxmo.io/p/zen-and-the-art-of-machine-learning
208•jxmorris12•3d ago•71 comments

Show HN: Metiq: a real time 3D globe for 100 public datasets

https://metiq.space
44•rakeda•3d ago•9 comments

To study how chips work, MIT researchers built their own operating system

https://news.mit.edu/2026/to-study-how-chips-really-work-mit-researchers-built-their-own-operatin...
321•speckx•4d ago•49 comments

Giant Banana Pulled over in Montana Driver Says Cops Have Stopped Him 100s Times

https://cowboystatedaily.com/2026/06/18/giant-banana-pulled-over-in-montana-driver-says-cops-have...
41•Bender•1h ago•22 comments

I found 10k GitHub repositories distributing Trojan malware

https://orchidfiles.com/github-repositories-distributing-malware/
916•theorchid•1d ago•239 comments

Gribouille 0.3.0: A Grammar of Graphics for Typst

https://mickael.canouil.fr/posts/2026-06-15-gribouille-0-3/
191•mcanouil•4d ago•72 comments

The AirPods Effect

https://www.theescapenewsletter.com/p/the-airpods-effect
335•herbertl•21h ago•605 comments

Music generation using Algebra, presented as web MIDI shop

https://monictheory.com
6•midi_finder•5d ago•2 comments

Is AI ruining our skills? Early results are in – and they're not good

https://www.nature.com/articles/d41586-026-01947-1
150•Michelangelo11•2h ago•166 comments

The Productivity J-Curve [pdf] (2018)

https://ide.mit.edu/sites/default/files/publications/jcurve.pdf
44•kioku•3d ago•14 comments

Show HN: Pagecast – Publish Markdown/HTML Reports to Cloudflare Pages

https://github.com/Amal-David/pagecast
14•amaldavid•1d ago•3 comments

Show HN: Modeloop – From visual algorithms to microcontroller C code

https://www.modeloop.app/
33•lucamark•4d ago•22 comments

Court Records Should Be Free

https://www.eff.org/deeplinks/2026/06/court-records-should-be-free
31•hn_acker•2h ago•2 comments

Zero-Touch OAuth for MCP

https://blog.modelcontextprotocol.io/posts/enterprise-managed-auth/
251•niyikiza•22h ago•99 comments

How Japan's railways stayed one while splitting apart

https://arun.is/blog/jr-logo/
167•ddrmaxgt37•2d ago•130 comments

Akse3D – open-source 3D modelling anyone can master

https://akse3d-en.skaperiet.no
123•joachimhs•4d ago•35 comments

.gitignore Isn't the only way to ignore files in Git

https://nelson.cloud/.gitignore-isnt-the-only-way-to-ignore-files-in-git/
546•FergusArgyll•1d ago•163 comments

John Jumper leaves Google to join Anthropic

https://twitter.com/JohnJumperSci/status/2068001285173834106
21•artninja1988•2h ago•10 comments

Reinventing the Renaissance

https://drb.ie/article/reinventing-the-renaissance/
31•Petiver•2d ago•8 comments