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.

Type-safe HTML templating in Zig

https://lalinsky.com/2026/10/11/type-safe-html-templating-in-zig.html
125•lukaslalinsky•5h ago•56 comments

Fingerprints are the new cookies

https://royfish.dev/fingerprints-are-the-new-cookies
398•royfish•12h ago•199 comments

Postgres isn't slow, your storage is

https://clickhouse.com/blog/posette-talk-recap-postgres-isnt-slow-your-storage-is
98•saisrirampur•4h ago•69 comments

Total Annihilation, rebuilt for modern computers

https://nanolathe.gg
530•jttnr•16h ago•204 comments

Running the unmodified Linux amdgpu driver on an iPad

https://github.com/Geramy/LemonSeed-Studio
31•joshcsimmons•1d ago•11 comments

Calculus with Julia

https://jverzani.github.io/CalculusWithJuliaNotes.jl/
137•subset•1d ago•14 comments

Cartographers of North Korea (2019)

https://cartographers-nk.wonyoung.so/
266•edent•14h ago•49 comments

Whatever became of holography? (2011)

https://www.americanscientist.org/article/whatever-became-of-holography
135•cainxinth•10h ago•65 comments

Show HN: PS2 games statically recompiled to WebAssembly

https://github.com/snuri00/ps2-web-recomp
39•deadxwarrior•3h ago•9 comments

Terence Tao: Math 2.0 [pdf]

https://teorth.github.io/tao-web/slides/math-2-0-caltech-2026.pdf
410•Anon84•21h ago•430 comments

Ledger confirms hidden chip in crypto wallet amid $92M theft claims

https://crypto.news/ledger-confirms-hidden-chip-in-crypto-wallet-amid-92m/
10•thm•34m ago•4 comments

The gap in shared understanding of LLM capability is widening

https://twitter.com/karpathy/status/2109361546505966046
476•albertzeyer•14h ago•691 comments

Zod 4.6.6 compromised by malware?

https://github.com/colinhacks/zod/commit/d821685ea6732436fcdf786a81d076958471e467
131•luggage_bazooka•2h ago•34 comments

Doory – Open-Source Canva

https://github.com/shaongitbd/doory
122•acley•9h ago•45 comments

Local Indexing to reduce tool calling and token usage

https://tedhaley.ca/pensieve/
82•TedHaley•10h ago•24 comments

Bag of Decisions Reranker

https://softwaredoug.com/blog/2026/10/08/bag-of-decisions.html
4•zdw•1d ago•0 comments

Deloitte falsified documents to evade tax on Abramovich's wealth

https://www.bbc.com/news/articles/c64g1l5389kvo
7•Betelbuddy•22m ago•0 comments

Fable Took My Job

https://cendyne.dev/posts/2026-10-11-fable-took-my-jorb.html
146•jllyhill•2h ago•171 comments

No portable way to detect string-to-float conversion errors in standard C

https://sebsite.pw/w/20261009-strtod.html
51•signa11•1d ago•43 comments

Passkeys are a trap

https://nonfunctional.substack.com/p/passkeys-are-a-trap-do-not-use-them
654•laurex•12h ago•380 comments

Illustration Beyond Proof

https://terrytao.wordpress.com/2026/10/11/illustration-beyond-proof/
68•smilelamp•11h ago•8 comments

Chapter 1 of "Ways of Seeing" by John Berger (1972)

https://www.ways-of-seeing.com/ch1
113•rafael859•16h ago•18 comments

Research Firm Calls Anthropic's IPO 'Unprecedented Test of Investor Gullibity'

https://www.cnbc.com/2026/10/07/anthropic-will-be-most-ridiculous-ipo-of-year-analyst-says.html
78•m463•5h ago•61 comments

Will Linux phones become a viable alternative to the Android/iOS duopoly?

https://amosbbatto.wordpress.com/2026/10/05/linux-phones-alternative/
155•amosbatto•5h ago•174 comments

Programmable pigments: Photochromic nanoparticle inks for rewritable tattoos

https://www.cell.com/matter-light/fulltext/S3117-5848(26)00119-5
56•Bluestein•1d ago•36 comments

Ask HN: Do you want a router that has DD-WRT pre-installed?

57•Ixander•1d ago•63 comments

NYC's "Click to Cancel" rule is now in effect

https://www.nyc.gov/main/click-to-cancel
484•gregsadetsky•16h ago•233 comments

So, you’d like to sell your print issues of The Onion?

https://theonion.com/archivehunt/
328•mooreds•15h ago•49 comments

Google Data Centers around the world

https://datacenters.google/locations/
60•andsoitis•11h ago•55 comments

Every US Electrical Outlet Explained [video]

https://www.youtube.com/watch?v=n_1wzYQwnts
25•zdw•1d ago•36 comments