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.

Sleep regularity is a stronger predictor of mortality risk than sleep duration (2023)

https://academic.oup.com/sleep/article/47/1/zsad253/7280269
506•bilsbie•4h ago•247 comments

Mysteries of Telegram Data Centers

https://dev.moe/en/3025
129•theanonymousone•3h ago•31 comments

Codex Micro

https://openai.com/supply/co-lab/work-louder/
23•davidbarker•29m ago•11 comments

J-space comparisons across open models

https://eliebak.com/viz/jspace-open-v2
17•babelfish•45m ago•1 comments

Prioritize mental health, and why communication is so important

https://ramones.dev/posts/mental-health/
158•ramon156•5h ago•88 comments

DEA to Temporarily Schedule 7-Oh and Related Substances to Protect Public Safety

https://www.dea.gov/press-releases/2026/07/01/dea-temporarily-schedule-7-oh-and-related-substance...
47•gnabgib•1h ago•57 comments

Jurassic Park computers in excruciating detail

https://fabiensanglard.net/jurrasic_park_computers/index.html
759•vinhnx•13h ago•194 comments

Show HN: misa77 - a codec that decodes 2x faster than LZ4 (at better ratios)

https://github.com/welcome-to-the-sunny-side/misa77
13•nonadhocproblem•43m ago•1 comments

Running Gemma 4 26B at 5 tokens/SEC on a 13-year-old Xeon with no GPU

https://www.neomindlabs.com/2026/06/08/running-gemma-4-26b-at-5-tokens-sec-on-a-13-year-old-xeon-...
16•neomindryan•1h ago•5 comments

The well-calibrated Bayesian [pdf] (1982)

https://fitelson.org/seminar/dawid.pdf
35•Murfalo•2h ago•8 comments

Primate Is the Last Great Web Framework

https://superarch.org/theanswerisc/primate-is-the-last-great-framework.html
7•terrablue•6m ago•0 comments

Open-source memory for coding agents, synced over SSH

https://github.com/vshulcz/deja-vu/
6•vshulcz•27m ago•4 comments

When A.I. Is a Member of the Family

https://www.newyorker.com/magazine/2026/07/20/when-ai-is-a-member-of-the-family
8•fortran77•1h ago•3 comments

Weathergotchi – an open-source climate Tamagotchi

https://github.com/Michael-Manning/E-Paper-Climate-Logger
78•luanmuniz•5h ago•22 comments

Jiga (YC W21) is hiring the best people to make manufacturing great again

https://jiga.io/about-us/
1•grmmph•4h ago

SpaceX bond worth 10% less than issue price – heading for junk bond status

https://www.ft.com/content/3a023b95-66c3-41e1-b0ce-df752a499541
396•youngtaff•3h ago•335 comments

The Conservationist Who Turned 40 Terabytes of Public Data into a Video Game

https://blog.exe.dev/meet-the-conservationist-who-turned-40-terabytes-of-government-data-into-a-v...
45•bryanmikaelian•1d ago•5 comments

The Memory Heist

https://www.ayush.digital/blog/the-memory-heist
22•eieio•21h ago•2 comments

Towards a Harness That Can Do Anything

https://eardatasci.github.io/c/ambiance/index.html
72•evakhoury•2h ago•44 comments

What Every Python Developer Should Know About the CPython ABI

https://labs.quansight.org/blog/python-abi-abi3t
22•matt_d•3d ago•2 comments

Briar Is in Maintenance Mode

https://briarproject.org/news/2026-maintenance-mode/
91•ristello•4h ago•64 comments

Nat Slipstreaming v2.0 allows an attacker to remotely access any TCP/UDP service

https://sa.my/slipstream/
6•_____k•55m ago•2 comments

The age of the Universe from a large sample of the oldest Galactic stars

https://arxiv.org/abs/2607.00764
5•root-parent•1h ago•0 comments

C3 0.8.2 a Modest Improvement

https://c3-lang.org/blog/0_8_2_a_modest_improvement/
5•lerno•1d ago•3 comments

What's the most popular number in Hacker News titles?

https://blog.omgmog.net/post/most-popular-numbers-in-hn-post-titles/
33•omgmog•4h ago•17 comments

Show HN: 18KB ls alternative in no_std rust and Libc

https://crates.io/crates/fli-tool
11•tracyspacy•2h ago•2 comments

A Trip to 90s Kansai: Exploring the XD FirstClass Network BBS

https://cdrom.ca/games/2026/05/30/xd.html
49•zetamax•1d ago•9 comments

Bootstrapping GDC with DMD

https://briancallahan.net/blog/20260713.html
18•LorenDB•1d ago•2 comments

The Three-Second Theft: Why AI Voice Fraud Outruns Every Defence

https://smarterarticles.co.uk/the-three-second-theft-why-ai-voice-fraud-outruns-every-defence
105•dxs•3h ago•125 comments

Using Go for Mobile Apps

https://www.davidsobsessions.com/p/one-year-of-gomobile/
37•theHocineSaad•7h ago•12 comments