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.

Want your images back? Sure... That'll be $5!

https://www.lutr.dev/want-your-images-back-sure-that-ll-be-5-dollars
339•lutr•2h ago•135 comments

Epic Games announces Lore version control system

https://lore.org/
147•regnerba•58m ago•85 comments

GLM-5.2 is the new leading open weights model on Artificial Analysis

https://artificialanalysis.ai/articles/glm-5-2-is-the-new-leading-open-weights-model-on-the-artif...
478•himata4113•6h ago•259 comments

Sixty percent of US consumers say 'AI' in brand messaging is a turnoff

https://wpvip.com/future-of-the-web-2026/
536•thm•3h ago•273 comments

RFC 10008: The new HTTP Query Method

https://www.rfc-editor.org/info/rfc10008/
159•schappim•4h ago•81 comments

MicroUI – A tiny, portable, immediate-mode UI library written in ANSI C

https://github.com/rxi/microui
69•peter_d_sherman•3h ago•26 comments

Why stdx is not on crates.io

https://kerkour.com/stdx-cratesio
21•Keyb0ardWarri0r•44m ago•10 comments

Hacker News but for Independent Blogs

https://bubbles.town/
312•headalgorithm•7h ago•99 comments

Show HN: High-Res Neural Cellular Automata

https://cells2pixels.github.io/
135•esychology•6h ago•33 comments

AI demands more engineering discipline. Not less

https://charitydotwtf.substack.com/p/ai-demands-more-engineering-discipline
59•BerislavLopac•1h ago•9 comments

GrapheneOS has been ported to Android 17

https://discuss.grapheneos.org/d/36469-grapheneos-has-been-ported-to-android-17-and-official-rele...
919•Cider9986•18h ago•480 comments

Running local models is good now

https://vickiboykis.com/2026/06/15/running-local-models-is-good-now/
1458•jfb•1d ago•558 comments

Image Compression

https://www.makingsoftware.com/chapters/image-compression
50•vinhnx•3d ago•6 comments

Abandoned and Little-Known Airfields

https://airfields-freeman.com/
88•wizardforhire•2d ago•18 comments

Show HN: Inkwash, a watercolor sketching app and explanation

https://johnowhitaker.github.io/inkwash/about
38•Yenrabbit•3d ago•12 comments

ICE Appears to Be Buying Immigrants' Tax Identifiers from a Data Broker

https://www.404media.co/ice-appears-to-be-buying-immigrants-tax-identifiers-from-a-data-broker/
45•ilreb•1h ago•22 comments

Show HN: Capacitor Alarm Clock

https://github.com/ArcaEge/capacitor-alarm-clock
102•arcaege•3d ago•31 comments

GLM 5.2 Performance Benchmarks

https://artificialanalysis.ai/models/glm-5-2
92•theanonymousone•7h ago•33 comments

Map Clustering Is Not My Favorite

https://blog.greg.technology/2026/06/12/map-clustering-is-not-my-favorite.html
83•gregsadetsky•4d ago•31 comments

The Rise and (Potential) Fall of Letterboxd

https://www.statsignificant.com/p/the-rise-and-potential-fall-of-letterboxd
11•speckx•1w ago•0 comments

Humiliating IIS servers for fun and jail time

https://mll.sh/humiliating-iis-servers-for-fun-and-jail-time/
323•denysvitali•16h ago•78 comments

TIL: You can make HTTP requests without curl using Bash /dev/TCP

https://mareksuppa.com/til/bash-dev-tcp-http-without-curl/
499•mrshu•22h ago•215 comments

Subterranean fungi networks more than 100 quadrillion km in length

https://www.theguardian.com/science/2026/jun/11/arbuscular-mycorrhizal-fungi-plant-life-climate-g...
137•tosh•5d ago•33 comments

Calvin and Hobbes and the price of integrity

https://therepublicofletters.substack.com/p/calvin-and-hobbes-and-the-price-of
507•pseudolus•23h ago•219 comments

Show HN: I built 184 free browser tools – PDF, image, dev, AI tasks, no upload

https://brevio.pro
50•ruimbarreira•5h ago•12 comments

Has AI already killed self-help nonfiction books?

https://tim.blog/2026/06/12/has-ai-already-killed-nonfiction/
376•imakwana•22h ago•426 comments

Pentagon boasts of using AI to write reports mandated by Congress (1.5mil users)

https://arstechnica.com/ai/2026/06/pentagon-boasts-of-using-ai-to-write-reports-mandated-by-congr...
13•FrustratedMonky•1h ago•13 comments

GPT‑NL: a sovereign language model for the Netherlands

https://www.tno.nl/en/digital/artificial-intelligence/gpt-nl/
244•root-parent•21h ago•277 comments

Wolfram Language and Mathematica version 15

https://writings.stephenwolfram.com/2026/06/launching-version-15-of-wolfram-language-mathematica-...
204•alok-g•16h ago•106 comments

Stop Using JWTs

https://gist.github.com/samsch/0d1f3d3b4745d778f78b230cf6061452
456•dzonga•22h ago•265 comments