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

Comments

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

Claude Design

https://www.anthropic.com/news/claude-design-anthropic-labs
516•meetpateltech•3h ago•336 comments

Claude Opus 4.7 costs 20–30% more per session

https://www.claudecodecamp.com/p/i-measured-claude-4-7-s-new-tokenizer-here-s-what-it-costs-you
313•aray07•3h ago•179 comments

All 12 moonwalkers had "lunar hay fever" from dust smelling like gunpowder

https://www.esa.int/Science_Exploration/Human_and_Robotic_Exploration/The_toxic_side_of_the_Moon
18•cybermango•38m ago•3 comments

Isaac Asimov: The Last Question (1956)

https://hex.ooo/library/last_question.html
481•ColinWright•6h ago•179 comments

NASA Force

https://nasaforce.gov/
92•LorenDB•3h ago•116 comments

Middle schooler finds coin from Troy in Berlin

https://www.thehistoryblog.com/archives/75848
131•speckx•4h ago•49 comments

NIST gives up enriching most CVEs

https://risky.biz/risky-bulletin-nist-gives-up-enriching-most-cves/
100•mooreds•3h ago•24 comments

Show HN: Smol machines – subsecond coldstart, portable virtual machines

https://github.com/smol-machines/smolvm
41•binsquare•1h ago•22 comments

Ban the sale of precise geolocation

https://www.lawfaremedia.org/article/it-is-time-to-ban-the-sale-of-precise-geolocation
387•hn_acker•4h ago•118 comments

Kyber (YC W23) Is Hiring a Head of Engineering

https://www.ycombinator.com/companies/kyber/jobs/TcEa3b5-head-of-engineering
1•asontha•1h ago

Iceye Open Data

https://www.iceye.com/open-data-initiative
68•marklit•4h ago•11 comments

Show HN: PanicLock – Close your MacBook lid disable TouchID –> password unlock

https://github.com/paniclock/paniclock/
41•seanieb•2h ago•14 comments

Healthchecks.io now uses self-hosted object storage

https://blog.healthchecks.io/2026/04/healthchecks-io-now-uses-self-hosted-object-storage/
93•zdw•4h ago•49 comments

Solitaire simulator for finding the best strategy: Current record is 8.590%

https://github.com/dacracot/Klondike3-Simulator
17•PaulHoule•17h ago•7 comments

Connie Converse was a folk-music genius. Then she vanished

https://www.bbc.com/culture/article/20260413-the-mystery-of-a-missing-folk-music-pioneer
19•mellosouls•2d ago•6 comments

Designing the Transport Typeface

https://www.thamesandhudson.com/blogs/all-news-features/designing-the-transport-typeface-margaret...
39•speckx•2d ago•6 comments

Show HN: Stage – Putting humans back in control of code review

https://stagereview.app/
61•cpan22•1d ago•61 comments

The Gregorio project – GPL tools for typesetting Gregorian chant

https://gregorio-project.github.io/index.html
22•mcookly•3h ago•6 comments

Ada, its design, and the language that built the languages

https://www.iqiipi.com/the-quiet-colossus.html
215•mpweiher•10h ago•151 comments

Detecting DOSBox from Within the Box

https://datagirl.xyz/posts/dos_inside_the_box.html
13•atan2•2h ago•0 comments

Webloc: Analysis of Penlink's Ad-Based Geolocation Surveillance Tech

https://citizenlab.ca/research/analysis-of-penlinks-ad-based-geolocation-surveillance-tech/
5•Cider9986•3d ago•0 comments

Teddy Roosevelt and Abraham Lincoln in the same photo (2010)

https://prologue.blogs.archives.gov/2010/11/09/teddy-roosevelt-and-abraham-lincoln-in-the-same-ph...
95•bryanrasmussen•9h ago•16 comments

Reflections on 30 years of HPC programming

https://chapel-lang.org/blog/posts/30years/
111•matt_d•3d ago•83 comments

NeoGeo AES+: SNK announces reissue of retro console without emulation

https://www.heise.de/en/news/NeoGeo-AES-SNK-announces-reissue-of-retro-console-without-emulation-...
12•doener•49m ago•1 comments

FIM – Linux framebuffer image viewer

https://www.nongnu.org/fbi-improved/
123•Mr_Minderbinder•11h ago•63 comments

Average is all you need

https://rawquery.dev/blog/average-is-all-you-need
58•AlexC04•4d ago•63 comments

Random musings: 80s hardware, cyberdecks

https://strangelyentangled.com/blog/musings-80s-hardware/
3•speckx•1h ago•0 comments

CadQuery is an open-source Python library for building 3D CAD models

https://cadquery.github.io/
204•gregsadetsky•2d ago•53 comments

Scan your website to see how ready it is for AI agents

https://isitagentready.com
76•WesSouza•4h ago•132 comments

A Python Interpreter Written in Python

https://aosabook.org/en/500L/a-python-interpreter-written-in-python.html
130•xk3•4d ago•38 comments