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•9mo ago

Comments

throwawaymaths•9mo 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•9mo ago
i dont think smaller radixes make the problem more interesting. the problem is interesting because base 10 has a large branching factor
throwawaymaths•9mo 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•9mo ago
There's a Project Euler problem for finding truncatable prime numbers, from both left and right: https://projecteuler.net/problem=37
thechao•9mo 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: Terminal Phone – E2EE Walkie Talkie from the Command Line

https://gitlab.com/here_forawhile/terminalphone
128•smalltorch•3h ago•34 comments

Google API keys weren't secrets, but then Gemini changed the rules

https://trufflesecurity.com/blog/google-api-keys-werent-secrets-but-then-gemini-changed-the-rules
900•hiisthisthingon•18h ago•207 comments

Anthropic ditches its core safety promise

https://www.cnn.com/2026/02/25/tech/anthropic-safety-policy-change
115•motbus3•1h ago•52 comments

Fentanyl makeover: Core structural redesign could lead to safer pain medications

https://www.scripps.edu/news-and-events/press-room/2026/20260211-janda-molecule.html
22•littlexsparkee•1h ago•17 comments

Show HN: Agent Swarm – Multi-agent self-learning teams (OSS)

https://github.com/desplega-ai/agent-swarm
37•tarasyarema•2h ago•18 comments

Jimi Hendrix was a systems engineer

https://spectrum.ieee.org/jimi-hendrix-systems-engineer
557•tintinnabula•18h ago•180 comments

Tell HN: YC companies scrape GitHub activity, send spam emails to users

214•miki123211•4h ago•74 comments

Banned in California

https://www.bannedincalifornia.org/
250•pie_flavor•15h ago•285 comments

How will OpenAI compete?

https://www.ben-evans.com/benedictevans/2026/2/19/how-will-openai-compete-nkg2x
324•iamskeole•15h ago•452 comments

Number of UK workers on zero-hours contracts hits record high ahead of crackdown

https://www.bbc.co.uk/news/articles/czj1m7d4gxpo
34•robtherobber•2h ago•17 comments

Hightouch (YC S19) Is Hiring

https://hightouch.com/careers#open-positions
1•joshwget•2h ago

First Website (1992)

https://info.cern.ch
260•shrikaranhanda•15h ago•72 comments

Making MCP cheaper via CLI

https://kanyilmaz.me/2026/02/23/cli-vs-mcp.html
260•thellimist•17h ago•103 comments

Windows 11 Notepad to support Markdown

https://blogs.windows.com/windows-insider/2026/01/21/notepad-and-paint-updates-begin-rolling-out-...
314•andreynering•21h ago•473 comments

Artist who “paints” portraits on glass by hitting it with a hammer

https://simonbergerart.com
209•cs702•3d ago•85 comments

Bus stop balancing is fast, cheap, and effective

https://worksinprogress.co/issue/the-united-states-needs-fewer-bus-stops/
383•surprisetalk•21h ago•552 comments

A 26-Gram Butterfly-Inspired Robot Achieving Autonomous Tailless Flight

https://arxiv.org/abs/2602.06811
28•Terretta•4d ago•5 comments

Large-Scale Online Deanonymization with LLMs

https://simonlermen.substack.com/p/large-scale-online-deanonymization
306•DalasNoin•1d ago•216 comments

Show HN: Respectify – A comment moderator that teaches people to argue better

https://respectify.org/
192•vintagedave•1d ago•191 comments

Show HN: Modern Reimplementation of the Speck Molecule Renderer

https://github.com/vangelov/modern-speck
12•vlad_angelov•4d ago•1 comments

Those who can, teach history

https://www.historytoday.com/archive/making-history/those-who-can-teach-history
5•hhs•4d ago•1 comments

Burger King will use AI to check if employees say 'please' and 'thank you'

https://www.theverge.com/ai-artificial-intelligence/884911/burger-king-ai-assistant-patty
17•JeanKage•1h ago•8 comments

The First Fully General Computer Action Model

https://si.inc/posts/fdm1/
290•nee1r•2d ago•71 comments

Writers and Their Day Jobs

https://lithub.com/the-work-behind-the-writing-on-writers-and-their-day-jobs/
50•simplegeek•4d ago•15 comments

The Om Programming Language

https://www.om-language.com/
283•tosh•20h ago•86 comments

Tech companies shouldn't be bullied into doing surveillance

https://www.eff.org/deeplinks/2026/02/tech-companies-shouldnt-be-bullied-doing-surveillance
371•pseudolus•13h ago•116 comments

RAM now represents 35 percent of bill of materials for HP PCs

https://arstechnica.com/gadgets/2026/02/ram-now-represents-35-percent-of-bill-of-materials-for-hp...
322•jnord•11h ago•253 comments

Out of Light Adjust Share: Caravaggio, La Tour, and the Art of Attention

https://harpers.org/archive/2026/03/out-of-light-nicole-krauss-caravaggio-georges-de-la-tour/
28•prismatic•3d ago•3 comments

You Want to Visit the UK? You Better Have a Google Play or App Store Account

https://www.heltweg.org/posts/you-want-to-visit-the-uk-you-better-have-a-google-play-or-app-store...
156•rhazn•3h ago•221 comments

The Physics and Economics of Moving 44 Tonnes at 56mph

https://www.mikeayles.com/blog/heavy-haulage-basics/
65•mikeayles•2d ago•52 comments