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.

New research suggests people can communicate and practice skills while dreaming

https://www.newyorker.com/culture/annals-of-inquiry/its-possible-to-learn-in-our-sleep-should-we
91•XzetaU8•3h ago•43 comments

Ti-84 Evo

https://education.ti.com/en/products/calculators/graphing-calculators/ti-84-evo
28•thatxliner•44m ago•11 comments

Ask HN: Who is hiring? (May 2026)

187•whoishiring•5h ago•202 comments

Spotify adds 'Verified' badges to distinguish human artists from AI

https://www.bbc.com/news/articles/c5yerr4m1yno
132•reconnecting•4h ago•138 comments

Show HN: Destiny – Claude Code's fortune Teller skill

https://github.com/xodn348/destiny
15•xodn348•55m ago•0 comments

City Learns Flock Accessed Cameras in Children's Gymnastics Room as a Sales Demo

https://www.404media.co/city-learns-flock-accessed-cameras-in-childrens-gymnastics-room-as-a-sale...
145•joshcsimmons•2h ago•22 comments

whohas – Command-line utility for cross-distro, cross-repository package search

https://github.com/whohas/whohas
96•peter_d_sherman•5h ago•21 comments

Whimsical Animations Course Open House

https://courses.joshwcomeau.com/wham/open-house/00-introduction
20•SpyCoder77•1h ago•4 comments

I've Covered Robots for Years. This One Is Different

https://www.wired.com/story/when-robots-have-their-chatgpt-moment-remember-these-pincers/
25•zdw•1d ago•17 comments

AI uses less water than the public thinks

https://californiawaterblog.com/2026/04/26/ai-water-use-distractions-and-lessons-for-california/
235•hirpslop•3h ago•221 comments

Understand Anything

https://github.com/Lum1104/Understand-Anything
57•taubek•3h ago•17 comments

Ask HN: Who wants to be hired? (May 2026)

100•whoishiring•5h ago•187 comments

Artemis II Fault Tolerance

https://alearningaday.blog/2026/05/01/artemis-ii-fault-tolerance/
30•speckx•3h ago•16 comments

Sally McKee, who coined the term "the memory wall", has died

https://www.online-tribute.com/SallyMcKee
93•deater•6h ago•18 comments

Show HN: WhatCable, a tiny menu bar app for inspecting USB-C cables

https://github.com/darrylmorley/whatcable
344•sleepingNomad•12h ago•114 comments

Credit Cards Are Vulnerable to Brute Force Kind Attacks

https://metin.nextc.org/posts/Credit_Cards_Are_Vulnerable_To_Brute_Force_Kind_Attacks.html
4•kodbraker•24m ago•3 comments

Show HN: AI CAD Harness

https://fusion.adam.new/install
31•zachdive•3h ago•36 comments

Apocalypse Early Warning System

https://ews.kylemcdonald.net/
49•carlsborg•4h ago•18 comments

I'm Peter Roberts, immigration attorney who does work for YC and startups. AMA

102•proberts•5h ago•163 comments

Running Adobe's 1991 PostScript Interpreter in the Browser

https://www.pagetable.com/?p=1854
110•ingve•8h ago•25 comments

AWS stops billing Middle East cloud customers as repairs to war damage drag on

https://arstechnica.com/gadgets/2026/05/amazon-stuck-with-months-of-repairs-after-drone-strikes-o...
86•johnbarron•3h ago•27 comments

Your website is not for you

https://websmith.studio/blog/your-website-is-not-for-you/
230•pumbaa•9h ago•166 comments

The Gay Jailbreak Technique

https://github.com/Exocija/ZetaLib/blob/main/The%20Gay%20Jailbreak/The%20Gay%20Jailbreak.md
205•bobsmooth•3h ago•68 comments

Ubuntu servers taken offline by "sustained, cross-border attack"

https://arstechnica.com/security/2026/05/ubuntu-infrastructure-has-been-down-for-more-than-a-day/
41•RattlesnakeJake•1h ago•8 comments

An open letter asking NHS England to keep its code open

https://keepthingsopen.com
181•tvararu•5h ago•11 comments

Show HN: My Private GitHub on Postgres

https://github.com/calebwin/gitgres
32•calebhwin•3h ago•16 comments

The X-Files has made me nostalgic for a time I never experienced

https://midnightmurmurations.substack.com/p/the-x-files-has-made-me-nostalgic
96•Teever•3h ago•97 comments

Lib0xc: A set of C standard library-adjacent APIs for safer systems programming

https://github.com/microsoft/lib0xc
7•wooster•1h ago•1 comments

Canonical/Ubuntu have been under DDoS

https://status.canonical.com/#/incident/KNms6QK9ewuzz-7xUsPsNylV20jEt5kyKsd8A-3ptQEHpOd8VQ40ZQs-K...
138•jtlebigot•13h ago•49 comments

New copy of earliest poem in English, written 1,3k years ago, discovered in Rome

https://www.tcd.ie/news_events/articles/2026/caedmons-hymn-discovery/
193•giuliomagnifico•2d ago•116 comments