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.

Writing by hand is good for your brain

https://nealstephenson.substack.com/p/writing-by-hand-is-good-for-your
1088•dwwoelfel•14h ago•513 comments

Show HN: Echo – Fable-level results at 1/3 the cost using open-weight models

280•adam_rida•9h ago•140 comments

The Beam Engine

https://glinscott.github.io/beam-engine/
218•glinscott•1d ago•66 comments

Startup founders urge U.S. government not to shut off Chinese open weight AI

https://www.politico.com/news/2026/07/22/startup-founders-urge-trump-not-to-shut-off-chinese-open...
803•theanonymousone•13h ago•696 comments

What happened to TheNumbers.com

https://stephenfollows.com/p/what-just-happened-to-thenumberscom-should-worry-us-all
320•nickthegreek•11h ago•142 comments

What else do people draw on gradient.horse?

https://rybakov.com/blog/what_else_do_people_draw_on_gradient-copy.horse/
73•spython•5d ago•12 comments

98.css

https://jdan.github.io/98.css/#status-bar
362•lopespm•6h ago•84 comments

Why Software Factories Fail (or: harness engineering is not enough)

https://github.com/humanlayer/advanced-context-engineering-for-coding-agents/blob/main/wsff.md
226•dhorthy•13h ago•173 comments

Software rendering in 500 lines of bare C++

https://haqr.eu/tinyrenderer/
263•mpweiher•14h ago•50 comments

Freeze-Casting

https://en.wikipedia.org/wiki/Freeze-casting
14•soupspaces•4d ago•3 comments

Learn OpenGL, extensive tutorial resource for learning Modern OpenGL

https://learnopengl.com/
204•ibobev•13h ago•106 comments

Building on ATProto

https://lukekanies.com/writing/building-on-atproto/
141•speckx•10h ago•68 comments

Show HN: Palmier Pro – Open-source macOS video editor built for AI

https://github.com/palmier-io/palmier-pro
132•harrisontin•13h ago•21 comments

The Visual 6502

http://visual6502.org/JSSim/index.html
73•infiniteregrets•5h ago•20 comments

DARPA, U.S. Air Force fly AI-controlled F-16

https://www.darpa.mil/news/2026/darpa-us-air-force-fly-ai-controlled-f-16
207•r2sk5t•14h ago•226 comments

Astronomers may have found the first exomoon

https://www.eso.org/public/news/eso2610/
205•MarcoDewey•14h ago•76 comments

Quickly rewrite Git repository history

https://github.com/newren/git-filter-repo
3•modinfo•3d ago•0 comments

Fractl.art – a fractal generator with 8 octillion different patterns

https://fractl.art
25•gilded-lilly•4d ago•4 comments

Fields Medals 2026

https://www.mathunion.org/imu-awards/fields-medal/fields-medals-2026
146•nill0•14h ago•76 comments

Police Removed Prominent Scientists from the ADA Meeting. Researchers Respond

https://www.the-scientist.com/police-removed-prominent-scientists-from-the-ada-meeting-researcher...
49•fosco•2h ago•19 comments

Launch HN: Screenpipe (YC S26) – Record how you work and turn that into agents

65•louis030195•11h ago•51 comments

Why Sony can't bring back its classic Walkman models

https://obsoletesony.substack.com/p/why-sony-cant-bring-back-classic-walkman
52•speckx•10h ago•46 comments

A solid-state “atomic channel” for separating rare earth elements

https://pme.uchicago.edu/news-events/news/cleaner-route-purifying-rare-earth-elements
79•MarcoDewey•10h ago•22 comments

I regret migrating to Codeberg

https://xn--gckvb8fzb.com/i-regret-migrating-to-codeberg/
131•boramalper•14h ago•96 comments

OpenAI’s accidental attack against Hugging Face is science fiction that happened

https://simonwillison.net/2026/Jul/22/openai-cyberattack/
438•abhisek•1d ago•353 comments

The arguments against open source AI are bad

https://tombedor.dev/arguments-against-open-source-ai-are-very-bad/
233•jjfoooo4•11h ago•164 comments

Couple pay >$800k for a gene-editing therapy for their daughter. She died.

https://www.science.org/content/article/exclusive-death-girl-chinese-gene-editing-trial-was-never...
283•Shortness8•7h ago•168 comments

Mourning Dan Williams

https://lwn.net/Articles/1084545/
47•speckx•9h ago•0 comments

Show HN: OneCLI – OSS credential gateway that keeps secrets out of AI agents

https://github.com/onecli/onecli
85•Jonathanfishner•13h ago•29 comments

Show HN: Claude-thermos keeps your Claude session warm for you

https://github.com/izeigerman/claude-thermos
88•s0ck_r4w•11h ago•74 comments