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•7mo ago

Comments

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

The struggle of resizing windows on macOS Tahoe

https://noheger.at/blog/2026/01/11/the-struggle-of-resizing-windows-on-macos-tahoe/
1440•happosai•10h ago•591 comments

CLI agents make self-hosting on a home server easier and fun

https://fulghum.io/self-hosting
460•websku•10h ago•292 comments

JRR Tolkien reads from The Hobbit for 30 Minutes (1952)

https://www.openculture.com/2026/01/j-r-r-tolkien-reads-from-the-hobbit-for-30-minutes-1952.html
23•bookofjoe•4d ago•1 comments

Himalayas bare and rocky after reduced winter snowfall, scientists warn

https://www.bbc.com/news/articles/clyndv7zd20o
69•koolhead17•4h ago•28 comments

This game is a single 13 KiB file that runs on Windows, Linux and in the Browser

https://iczelia.net/posts/snake-polyglot/
167•snoofydude•9h ago•49 comments

39c3: In-house electronics manufacturing from scratch: How hard can it be? [video]

https://media.ccc.de/v/39c3-in-house-electronics-manufacturing-from-scratch-how-hard-can-it-be
45•fried-gluttony•2d ago•4 comments

Don't fall into the anti-AI hype

https://antirez.com/news/158
877•todsacerdoti•21h ago•1053 comments

iCloud Photos Downloader

https://github.com/icloud-photos-downloader/icloud_photos_downloader
406•reconnecting•12h ago•186 comments

Xfce is great

https://rubenerd.com/xfce-is-great/
138•mikece•3h ago•82 comments

I'm making a game engine based on dynamic signed distance fields (SDFs) [video]

https://www.youtube.com/watch?v=il-TXbn5iMA
274•imagiro•3d ago•34 comments

Sampling at negative temperature

https://cavendishlabs.org/blog/negative-temperature/
144•ag8•11h ago•44 comments

The next two years of software engineering

https://addyosmani.com/blog/next-two-years/
103•napolux•9h ago•61 comments

FUSE is All You Need – Giving agents access to anything via filesystems

https://jakobemmerling.de/posts/fuse-is-all-you-need/
112•jakobem•10h ago•49 comments

Gadget Exposed a Spy Camera [video]

https://www.youtube.com/watch?v=1reman2waLs
31•rib3ye•7h ago•19 comments

Uncrossy

https://uncrossy.com/
46•dgacmu•6h ago•16 comments

Perfectly Replicating Coca Cola [video]

https://www.youtube.com/watch?v=TDkH3EbWTYc
187•HansVanEijsden•3d ago•127 comments

1% vs. 67%: What happened when we stopped trusting embeddings alone

https://roampal.ai/blog-context-rot.html
11•roampal•5d ago•2 comments

Erich von Däniken has died

https://daniken.com/en/startseite-english/
70•Kaibeezy•12h ago•104 comments

Insights into Claude Opus 4.5 from Pokémon

https://www.lesswrong.com/posts/u6Lacc7wx4yYkBQ3r/insights-into-claude-opus-4-5-from-pokemon
59•surprisetalk•5d ago•13 comments

Show HN: An LLM-optimized programming language

https://github.com/ImJasonH/ImJasonH/blob/main/articles/llm-programming-language.md
25•ImJasonH•4h ago•8 comments

Ask HN: What are you working on? (January 2026)

178•david927•15h ago•564 comments

Elo – A data expression language which compiles to JavaScript, Ruby, and SQL

https://elo-lang.org/
71•ravenical•4d ago•11 comments

Garbage collection is contrarian

https://trynova.dev/blog/garbage-collection-is-contrarian
34•aapoalas•2d ago•1 comments

Which programming languages are most token-efficient?

https://martinalderson.com/posts/which-programming-languages-are-most-token-efficient/
82•tehnub•6h ago•50 comments

A set of Idiomatic prod-grade katas for experienced devs transitioning to Go

https://github.com/MedUnes/go-kata
122•medunes•4d ago•19 comments

Poison Fountain

https://rnsaffn.com/poison3/
190•atomic128•14h ago•115 comments

Show HN: Engineering Schizophrenia: Trusting yourself through Byzantine faults

64•rescrv•9h ago•11 comments

Moving Scratch generation to Python on browser

https://kushaldas.in/posts/introducing-ektupy.html
32•kushaldas•2d ago•7 comments

I Cannot SSH into My Server Anymore (and That's Fine)

https://soap.coffee/~lthms/posts/i-cannot-ssh-into-my-server-anymore.html
101•TheWiggles•4d ago•78 comments

BYD's cheapest electric cars to have Lidar self-driving tech

https://thedriven.io/2026/01/11/byds-cheapest-electric-cars-to-have-lidar-self-driving-tech/
178•senti_sentient•10h ago•221 comments