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.

A website that lists websites to submit your website to

https://www.submission.directory/
146•azeemkafridi•2h ago•39 comments

I found 10k GitHub repositories distributing Trojan malware

https://orchidfiles.com/github-repositories-distributing-malware/
310•theorchid•5h ago•87 comments

Swiss parliament lifts ban on new nuclear power plants

https://www.bluewin.ch/en/news/switzerland/parliament-lifts-ban-on-new-nuclear-power-plants-32575...
293•leonidasrup•3h ago•159 comments

Ubiquiti: Enterprise NAS, Built on ZFS

https://blog.ui.com/article/introducing-enterprise-nas
125•ksec•3h ago•95 comments

Launch HN: TesterArmy (YC P26) – Agents that test web and mobile apps

https://tester.army
39•okwasniewski•2h ago•21 comments

Hospitals and universities repurposing drugs at 90% lower cost

https://www.kcl.ac.uk/news/hospitals-and-universities-repurposing-drugs-at-90-lower-cost
191•giuliomagnifico•6h ago•81 comments

Midjourney Medical

https://www.midjourney.com/medical/blogpost
1183•ricochet11•15h ago•797 comments

The Harajuku Moment

https://tim.blog/2024/02/09/harajuku-moment/
25•abhaynayar•1h ago•9 comments

Has W Social switched to closed source?

https://blog.elenarossini.com/w-social-public-institutions-and-the-theater-of-european-digital-so...
132•nemoniac•4h ago•77 comments

Advanced Compilers: The Self-Guided Online Course

https://www.cs.cornell.edu/courses/cs6120/2025fa/self-guided/
167•ibobev•6h ago•16 comments

Modos Color Monitor Pushes E-Paper Displays Further

https://spectrum.ieee.org/modos-e-paper-monitor
123•Vinnl•5h ago•33 comments

Emacs 31 is around the corner: The changes I'm daily driving

https://www.rahuljuliato.com/posts/emacs-31-around-the-corner
298•frou_dh•5h ago•147 comments

TerraPower in Deal with Meta for Eight Natrium 345 MW Advanced Nuclear Plants

https://neutronbytes.com/2026/01/09/terrapower-in-mega-deal-with-meta-for-eight-natrium-345-mw-ad...
52•mpweiher•2h ago•52 comments

Show HN: Gerrymandle - Daily puzzle game where you redraw electoral districts

https://gerrymandle.cc/
39•realmofthemad•3h ago•14 comments

DeepSeek Introduces Vision

https://chat.deepseek.com/
385•RIshabh235•11h ago•153 comments

.gitignore Isn't the Only Way to Ignore Files in Git

https://nelson.cloud/.gitignore-isnt-the-only-way-to-ignore-files-in-git/
136•FergusArgyll•7h ago•34 comments

Microsoft new Outlook takes 10 seconds to do what Outlook Classic does instantly

https://www.windowslatest.com/2026/06/15/microsofts-new-outlook-takes-10-seconds-to-do-what-outlo...
362•Adam-Hincu•5h ago•259 comments

Emacs, how it all started (for me)

https://xvw.lol/en/articles/emacs-start.html
46•nukifw•3d ago•12 comments

Local Qwen isn't a worse Opus, it's a different tool

https://blog.alexellis.io/local-ai-is-not-opus/
400•alphabettsy•14h ago•216 comments

The founder of Craigslist has given away half a billion dollars

https://www.independent.co.uk/us/money/craigslist-multimillionaire-craig-newmark-b2980681.html
17•Tomte•36m ago•2 comments

We built a persistent agent memory layer on Elasticsearch with 0.89 recall

https://www.elastic.co/search-labs/blog/agent-memory-elasticsearch
72•showmypost•6h ago•28 comments

Our Achilles Heel

https://collabfund.com/blog/our-achilles-heel/
4•surprisetalk•2d ago•0 comments

Unity vs. Floating Point

https://aras-p.info/blog/2026/06/11/Unity-vs-floating-point/
37•ibobev•3d ago•5 comments

How Alberta Eradicated Rats

https://worksinprogress.co/issue/albertas-war-on-rats/
69•tzury•4h ago•54 comments

Migrate from OpenClaw

https://hermes-agent.nousresearch.com/docs/guides/migrate-from-openclaw
80•JumpCrisscross•2h ago•63 comments

Vinyl Cache and Varnish Cache

https://vinyl-cache.org/organization/on_vinyl_cache_and_varnish_cache.html#org-vinyl-varnish
67•embedding-shape•3d ago•27 comments

Seven Perfect Shuffles Randomize a Deck of Cards. But How Many Sloppy Ones?

https://www.quantamagazine.org/seven-perfect-shuffles-randomize-a-deck-of-cards-but-how-many-slop...
59•layer8•8h ago•37 comments

What was nice about the UI of Windows 2000

https://movq.de/blog/postings/2026-06-16/0/POSTING-en.html
125•npongratz•2h ago•95 comments

Image Toolbox (T8RIN)

https://github.com/T8RIN/ImageToolbox/
23•unexpectedVCR•3d ago•2 comments

AMD silently removes memory encryption from consumer Ryzen CPUs

https://www.tomshardware.com/pc-components/cpus/amd-silently-removes-memory-encryption-from-consu...
360•lompad•9h ago•172 comments