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.

We deserve a better streams API for JavaScript

https://blog.cloudflare.com/a-better-web-streams-api/
115•nnx•2h ago•47 comments

Statement from Dario Amodei on our discussions with the Department of War

https://www.anthropic.com/news/statement-department-of-war
2539•qwertox•17h ago•1358 comments

Show HN: Badge that shows how well your codebase fits in an LLM's context window

https://github.com/qwibitai/nanoclaw/tree/main/repo-tokens
28•jimminyx•1h ago•18 comments

Can you reverse engineer our neural network?

https://blog.janestreet.com/can-you-reverse-engineer-our-neural-network/
176•jsomers•2d ago•106 comments

We gave terabytes of CI logs to an LLM

https://www.mendral.com/blog/llms-are-good-at-sql
10•shad42•37m ago•5 comments

Show HN: RetroTick – Run classic Windows EXEs in the browser

https://retrotick.com/
73•lqs_•3h ago•27 comments

Tenth Circuit: 4th Amendment Doesn't Support Broad Search of Protesters' Devices

https://www.eff.org/deeplinks/2026/02/victory-tenth-circuit-finds-fourth-amendment-doesnt-support...
81•hn_acker•1h ago•10 comments

F-Droid Board of Directors nominations 2026

https://f-droid.org/2026/02/26/board-of-directors-nominations.html
105•edent•5h ago•53 comments

An interactive intro to quadtrees

https://growingswe.com/blog/quadtrees
126•evakhoury•2d ago•12 comments

The Hunt for Dark Breakfast

https://moultano.wordpress.com/2026/02/22/the-hunt-for-dark-breakfast/
395•moultano•12h ago•155 comments

The normalization of corruption in organizations (2003) [pdf]

https://gwern.net/doc/sociology/2003-ashforth.pdf
190•rendx•9h ago•100 comments

Experts sound alarm after ChatGPT Health fails to recognise medical emergencies

https://www.theguardian.com/technology/2026/feb/26/chatgpt-health-fails-recognise-medical-emergen...
28•simonebrunozzi•34m ago•15 comments

Breaking Free

https://www.forbrukerradet.no/breakingfree/
105•Aissen•6h ago•17 comments

Get free Claude max 20x for open-source maintainers

https://claude.com/contact-sales/claude-for-oss
101•zhisme•7h ago•68 comments

Sprites on the Web

https://www.joshwcomeau.com/animation/sprites/
16•vinhnx•3d ago•3 comments

The quixotic team trying to build a world in a 20-year-old game

https://arstechnica.com/gaming/2026/02/inside-the-quixotic-team-trying-to-build-an-entire-world-i...
70•nxobject•2d ago•14 comments

Reading English from 1000 Ad

https://lewiscampbell.tech/blog/260224.html
55•LAC-Tech•3d ago•22 comments

OpenAI's $110B funding round (investments from Amazon, Nvidia, SoftBank)

https://www.reuters.com/business/retail-consumer/amazon-invest-50-billion-openai-2026-02-27/
41•throwaw12•1h ago•31 comments

How to Allocate Memory

https://geocar.sdf1.org/alloc.html
25•tosh•2d ago•1 comments

Working on Pharo Smalltalk: BPatterns: Rewrite Engine with Smalltalk Style

http://dionisiydk.blogspot.com/2026/02/bpatterns-rewrite-engine-with-smalltalk.html
44•mpweiher•7h ago•1 comments

Ubicloud (YC W24): Software Engineer – $95-$250K in Turkey, Netherlands, CA

https://www.ycombinator.com/companies/ubicloud/jobs/j4bntEJ-software-engineer
1•ozgune•7h ago

What Claude Code chooses

https://amplifying.ai/research/claude-code-picks
529•tin7in•22h ago•199 comments

80386 Protection

https://nand2mario.github.io/posts/2026/80386_protection/
107•nand2mario•3d ago•27 comments

The complete Manic Miner disassembly

https://skoolkit.ca/disassemblies/manic_miner/
45•sandebert•8h ago•7 comments

AirSnitch: Demystifying and breaking client isolation in Wi-Fi networks [pdf]

https://www.ndss-symposium.org/wp-content/uploads/2026-f1282-paper.pdf
391•DamnInteresting•1d ago•173 comments

What does " 2>&1 " mean?

https://stackoverflow.com/questions/818255/what-does-21-mean
374•alexmolas•20h ago•220 comments

Compact disc story (1998)

https://www.researchgate.net/publication/294484774_Compact_disc_story
29•pipeline_peak•12h ago•9 comments

Layoffs at Block

https://twitter.com/jack/status/2027129697092731343
837•mlex•19h ago•931 comments

The history of knocking on wood

https://resobscura.substack.com/p/neolithic-habits-machine-age-tools
42•benbreen•3d ago•8 comments

The Origins of Agar

https://www.asimov.press/p/agar
52•surprisetalk•4d ago•10 comments