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.

Show HN: Simple algorithm and color space to generate diverse skin tones

https://toneyalexander.github.io/inclusive-color-space/
61•automatoney•55m ago•14 comments

Ray Bradbury's "There Will Come Soft Rains" is set today (2026-08-04)

https://short-stories.co/@raybradbury/there-will-come-soft-rains-6k8vr4xxlnmj
383•askvictor•5h ago•171 comments

DeepSeek V4 Flash on a Single AMD MI300X

https://github.com/ryanzhou/deepseek-v4-flash-mi300x
247•zhoutong•6h ago•58 comments

Germany Records Historic 12B KWh Solar Feed-In in July 2026

https://solarquarter.com/2026/08/03/germany-records-historic-12-billion-kwh-solar-feed-in-in-july...
49•johnbarron•2h ago•16 comments

Agent skills that bring team coding standards to Claude Code and Codex

https://github.com/tikalk/adlc-team-skills
51•kanfilior•1h ago•21 comments

Dates That Don't Exist (2015)

https://blog.yossarian.net/2015/06/09/Dates-That-Dont-Exist
45•EndXA•2d ago•23 comments

LLMs reward expertise

https://www.seangoedecke.com/llms-reward-expertise/
1210•MaxMussio•18h ago•501 comments

Keyv and friends compromised in active Shai-Hulud supply chain attack

https://www.aikido.dev/blog/keyv-and-friends-compromised-in-npm-supply-chain-attack
112•cimi_•5h ago•44 comments

Buckminster Fuller: everything I know

https://www.bfi.org/about-fuller/everything-i-know/
77•simonebrunozzi•4h ago•25 comments

Xbox goes down. You can't play games you own on disc

https://birchtree.me/blog/xbox-goes-down-you-cant-play-games-you-own-on-disc/
353•surprisetalk•4h ago•392 comments

Online ad giant Adform was hacked, proving once again why ad blockers are needed

https://this.weekinsecurity.com/online-advertising-giant-adform-was-hacked-proving-once-again-why...
40•speckx•1h ago•6 comments

Show HN: Fine-tune an 8B model on a 4 GB laptop GPU

https://github.com/MakazhanAlpamys/Soup
75•MakazhanAlpamys•4h ago•8 comments

Harness Engineering for Self-Improvement

https://lilianweng.github.io/posts/2026-07-04-harness/
201•tosh•9h ago•36 comments

Roame (YC S23) Is Hiring Lead Engineer

https://www.ycombinator.com/companies/roame/jobs/mqqfa38-lead-full-stack-engineer
1•zman0225•4h ago

"Clean" Code, Horrible Performance (2023)

https://www.computerenhance.com/p/clean-code-horrible-performance
67•FrojoS•6h ago•29 comments

Where .env Went Wrong

https://secretspec.dev/blog/where-env-went-wrong/
51•domenkozar•4d ago•27 comments

Rebuilding and analysing 4 years of Wordle stats from WhatsApp chat logs

https://blog.omgmog.net/post/rebuilding-wordle-stats-from-whatsapp/
13•surprisetalk•1d ago•2 comments

Show HN: Run an 80B Qwen in 4.3 GB of RAM on a Mac, and a 35B on an iPhone

https://github.com/leonickson1/Swiftlet
269•leonickson•23h ago•120 comments

Why Large Language Models Fail at Tabular Prediction

https://arxiv.org/abs/2608.02412
62•sbulaev•6h ago•20 comments

Why etymologies matter: How tracing words can illuminate history (2024)

https://resobscura.substack.com/p/why-i-love-etymologies
54•benbreen•3d ago•11 comments

Ten advances in mathematics and theoretical computer science

https://openai.com/index/ten-advances-in-mathematics/
600•milkshakes•23h ago•883 comments

Devtools must be open source

https://blog.exe.dev/devtools-must-be-open-source
681•bryanmikaelian•1d ago•226 comments

Amazonian civilization had estimated 3M people in 3% of forest area

https://www.science.org/content/article/odd-shapes-hidden-dense-amazon-rainforest-reveal-sprawlin...
230•marojejian•6d ago•171 comments

AI-Generated Images Discourage Me from Reading Your Blog

https://nelson.cloud/ai-generated-images-discourage-me-from-reading-your-blog/
586•meysamazad•4h ago•339 comments

Homebench – Benchmark local LLMs for speed, memory, and quality

https://github.com/david-g-3654/homebench
33•davai-g•6h ago•1 comments

There Will Come Soft Rains (1950) [pdf]

https://users.wpi.edu/~zrbutzke/Docs/BradburyStories(1).pdf
276•pmg101•16h ago•98 comments

Archaeologists Find Ancient Glyphs in the Amazon

https://www.nytimes.com/2026/07/31/world/americas/amazon-archaeology-geoglyphs.html
36•wglb•3d ago•11 comments

Mosh in a Lift (2012)

https://mosh.org/elevator.txt
31•gavide•2d ago•12 comments

Learning-Rust.Github.io: Rust Programming Language Tutorials for Everyone

https://learning-rust.github.io
30•dumindunuwan•6h ago•6 comments

Apple says more ex-employees may have taken confidential data to OpenAI

https://techcrunch.com/2026/08/04/apple-says-more-ex-employees-may-have-taken-confidential-data-t...
8•thewebguyd•33m ago•0 comments