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

Comments

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

Google plans to invest up to $40B in Anthropic

https://www.bloomberg.com/news/articles/2026-04-24/google-plans-to-invest-up-to-40-billion-in-ant...
269•elffjs•8h ago•323 comments

My audio interface has SSH enabled by default

https://hhh.hn/rodecaster-duo-fw/
142•hhh•4h ago•33 comments

Iliad fragment found in Roman-era mummy

https://www.thehistoryblog.com/archives/75877
80•wise_blood•2d ago•17 comments

Google Flow Music

https://www.flowmusic.app/
76•hmokiguess•3h ago•39 comments

Sabotaging projects by overthinking, scope creep, and structural diffing

https://kevinlynagh.com/newsletter/2026_04_overthinking/
347•alcazar•9h ago•84 comments

The Classic American Diner

https://blogs.loc.gov/picturethis/2026/04/the-classic-american-diner/
138•NaOH•5h ago•80 comments

Show HN: I've built a nice home server OS

https://lightwhale.asklandd.dk/
43•Zta77•2h ago•18 comments

There Will Be a Scientific Theory of Deep Learning

https://arxiv.org/abs/2604.21691
107•jamie-simon•6h ago•42 comments

Work with the garage door up

https://notes.andymatuschak.org/Work_with_the_garage_door_up
102•jxmorris12•3d ago•83 comments

FusionCore: ROS 2 sensor fusion (IMU and GPS and encoders)

https://github.com/manankharwar/fusioncore
9•kharwarm•1h ago•1 comments

Diatec, known for its mechanical keyboard brand FILCO, has ceased operations

https://gigazine.net/gsc_news/en/20260424-filco-diatec/
88•gslin•8h ago•29 comments

How to be anti-social – a guide to incoherent and isolating social experiences

https://nate.leaflet.pub/3mk4xkaxobc2p
292•calcifer•13h ago•281 comments

Email could have been X.400 times better

https://buttondown.com/blog/x400-vs-smtp-email
109•maguay•1d ago•107 comments

Spinel: Ruby AOT Native Compiler

https://github.com/matz/spinel
302•dluan•15h ago•81 comments

MacBook Neo and how the iPad should be

https://craigmod.com/essays/ipad_neo/
188•jen729w•1d ago•107 comments

CC-Canary: Detect early signs of regressions in Claude Code

https://github.com/delta-hq/cc-canary
37•tejpalv•6h ago•18 comments

You don't want long-lived keys

https://argemma.com/blog/long-lived-keys/
11•kkl•3d ago•8 comments

I cancelled Claude: Token issues, declining quality, and poor support

https://nickyreinert.de/en/2026/2026-04-24-claude-critics/
750•y42•8h ago•445 comments

DeepSeek v4

https://api-docs.deepseek.com/
1786•impact_sy•21h ago•1391 comments

I'm done making desktop applications (2009)

https://www.kalzumeus.com/2009/09/05/desktop-aps-versus-web-apps/
136•claxo•8h ago•157 comments

SFO Quiet Airport (2025)

https://viewfromthewing.com/san-francisco-airport-removed-90-minutes-of-daily-noise-travelers-say...
123•CaliforniaKarl•5h ago•74 comments

SDL Now Supports DOS

https://github.com/libsdl-org/SDL/pull/15377
216•Jayschwa•8h ago•75 comments

Show HN: Browser Harness – Gives LLM freedom to complete any browser task

https://github.com/browser-use/browser-harness
77•gregpr07•9h ago•33 comments

The Overtom Chess Computer Museum

https://tluif.home.xs4all.nl/chescom/Engindex.html
5•semyonsh•2d ago•0 comments

OpenAI releases GPT-5.5 and GPT-5.5 Pro in the API

https://developers.openai.com/api/docs/changelog
203•arabicalories•6h ago•113 comments

TIPSv2: Advancing Vision-Language Pretraining with Enhanced Patch-Text Alignment

https://gdm-tipsv2.github.io/
20•gmays•4h ago•1 comments

Different Language Models Learn Similar Number Representations

https://arxiv.org/abs/2604.20817
90•Anon84•9h ago•35 comments

CSS as a Query Language

https://evdc.me/blog/css-query
57•evnc•6h ago•19 comments

Physicists revive 1990s laser concept to propose a next-generation atomic clock

https://phys.org/news/2026-04-physicists-revive-1990s-laser-concept.html
50•wglb•23h ago•8 comments

Tell HN: Claude 4.7 is ignoring stop hooks

70•LatencyKills•4h ago•66 comments