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.

Deno Desktop

https://docs.deno.com/runtime/desktop/
575•GeneralMaximus•6h ago•213 comments

Codex logging bug may write TBs to local SSDs

https://github.com/openai/codex/issues/28224
176•vantareed•5h ago•91 comments

Help I accidentally a wigglegram

https://lmao.center/blog/wiggle-accidents/
325•gregsadetsky•2d ago•71 comments

Did my old job only exist because of fraud?

https://david.newgas.net/did-my-old-job-only-exist-because-of-fraud/
643•advisedwang•14h ago•275 comments

Investors get real-time view of UK bond market activity for the first time

https://www.fca.org.uk/news/press-releases/investors-get-real-time-view-uk-bond-market-activity-f...
50•monkeydust•5h ago•8 comments

Apertus – Open Foundation Model for Sovereign AI

https://apertvs.ai/
442•T-A•15h ago•143 comments

Munich 1991: The Roots of the Current AI Boom

https://people.idsia.ch/~juergen/ai-boom-roots-munich-1991.html
107•tosh•2d ago•40 comments

Writing Postcards with a 3D Printer

https://severinbucher.com/posts/writing-postcards-with-a-3d-printer/
23•typesafeJ•3d ago•9 comments

Memory Safe Inline Assembly

https://fil-c.org/inlineasm
125•pizlonator•2d ago•27 comments

Everything is logarithms

https://alexkritchevsky.com/2026/05/25/everything-is-logarithms.html
244•E-Reverance•15h ago•50 comments

Good results fine tuning a local LLM like Qwen 3:0.6B to categorize questions

https://www.teachmecoolstuff.com/viewarticle/fine-tuning-a-local-llm-to-categorize-questions
159•dev-experiments•13h ago•30 comments

Identity verification on Claude

https://support.claude.com/en/articles/14328960-identity-verification-on-claude
799•bathory•23h ago•666 comments

There is minimal downside to switching to open models

https://www.marble.onl/posts/cancel_claude.html
269•amarble•15h ago•227 comments

Sakana Fugu

https://sakana.ai/fugu/
142•Finbarr•10h ago•83 comments

Lisp in the Rust Type System

https://github.com/playX18/lisp-in-types/
82•quasigloam•2d ago•2 comments

GLM 5.2 vs. Opus

https://techstackups.com/comparisons/glm-5.2-vs-opus/
191•ritzaco•5h ago•158 comments

UTFS: A Tar-Like File System for Embedded Systems (2025)

https://clisystems.com/article-UTFS-intro/
9•zdw•4d ago•6 comments

My 1992 view of the problems of computer programming in 1992

https://blog.plover.com/prog/fortran-i.html
37•speckx•2d ago•12 comments

JSON-LD explained for personal websites

https://hawksley.dev/blog/json-ld-explained-for-personal-websites/
232•ethanhawksley•17h ago•73 comments

How I play video games with spinal muscular atrophy

https://www.openassistivetech.org/how-i-actually-play-video-games-with-sma-the-tools-i-use-every-...
128•dannyobrien•3d ago•17 comments

Japanese verb conjugation the simple hard way

https://underreacted.leaflet.pub/3mmevu6woys27
116•valzevul•13h ago•174 comments

Manticore Search 27.1.5: Auth, sharding, conversational and faster vector search

https://manticoresearch.com/blog/manticore-search-27-1-5/
5•snikolaev•1h ago•0 comments

Show HN: Teach your kids perfect pitch

https://github.com/paytonjjones/bsharp
156•paytonjjones•23h ago•101 comments

Minecraft: Java Edition 26.2, the first version with Vulkan 1.2

https://www.minecraft.net/en-us/article/minecraft-java-edition-26-2
165•ObviouslyFlamer•5d ago•69 comments

Efficient C++ Programming for Modern C++ CPUs, Chapter 4/part 2

https://6it.dev/blog/infographics-operation-costs-in-cpu-clock-cycles-take-2-80736
70•birdculture•2d ago•14 comments

PowerFox Browser

https://powerfox.jazzzny.me/
147•thisislife2•15h ago•40 comments

1983 Northern Telecom Commodore Phone

https://www.oldtelephoneroom.ca/1983-northern-telecom-commodore-phone/
67•arexxbifs•11h ago•21 comments

Show HN: Criterion Closet as a website – pull any of 1,247 films off the shelf

https://the-criterion-closet.vercel.app
136•olievans•1d ago•39 comments

Rent collections are down in New York

https://www.politico.com/news/2026/06/21/rent-collections-are-down-in-new-york-and-no-ones-sure-w...
98•JumpCrisscross•14h ago•393 comments

The minimum viable unit of saleable software

https://brandur.org/minimum-viable-unit
183•brandur•19h ago•64 comments