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
814•meetpateltech•9h ago•547 comments

A simplified model of Fil-C

https://www.corsix.org/content/simplified-model-of-fil-c
97•aw1621107•3h ago•50 comments

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

https://www.esa.int/Science_Exploration/Human_and_Robotic_Exploration/The_toxic_side_of_the_Moon
216•cybermango•6h ago•119 comments

Landmark ancient-genome study shows surprise acceleration of human evolution

https://www.nature.com/articles/d41586-026-01204-5
40•unsuspecting•2h ago•16 comments

Measuring Claude 4.7's tokenizer costs

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

Coq theorem prover is now called Rocq

https://rocq-prover.org/about
17•rwmj•2d ago•10 comments

Isaac Asimov: The Last Question (1956)

https://hex.ooo/library/last_question.html
612•ColinWright•12h ago•247 comments

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

https://github.com/smol-machines/smolvm
209•binsquare•7h ago•87 comments

NASA Force

https://nasaforce.gov/
215•LorenDB•9h ago•234 comments

Are the costs of AI agents also rising exponentially? (2025)

https://www.tobyord.com/writing/hourly-costs-for-ai-agents
79•louiereederson•2d ago•7 comments

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

https://github.com/paniclock/paniclock/
116•seanieb•8h ago•53 comments

Slop Cop

https://awnist.com/slop-cop
63•ericHosick•9h ago•39 comments

Middle schooler finds coin from Troy in Berlin

https://www.thehistoryblog.com/archives/75848
195•speckx•10h ago•86 comments

Arc Prize Foundation (YC W26) Is Hiring a Platform Engineer for ARC-AGI-4

https://www.ycombinator.com/companies/arc-prize-foundation/jobs/AKZRZDN-platform-engineer-benchma...
1•gkamradt_•3h ago

Hyperscalers have already outspent most famous US megaprojects

https://twitter.com/finmoorhouse/status/2044933442236776794
119•nowflux•8h ago•93 comments

Spending 3 months coding by hand

https://miguelconner.substack.com/p/im-coding-by-hand
129•evakhoury•8h ago•129 comments

How to Host a Blog on a Subdirectory Instead of a Subdomain

https://www.davidma.org/blog/2025-11-14-host-your-blog-on-a-subdirectory/
12•taikon•1h ago•8 comments

Introducing: ShaderPad

https://rileyjshaw.com/blog/introducing-shaderpad/
37•evakhoury•2d ago•6 comments

NIST gives up enriching most CVEs

https://risky.biz/risky-bulletin-nist-gives-up-enriching-most-cves/
168•mooreds•9h ago•37 comments

I built a 3D printing business and ran it for 8 months

https://www.wespiser.com/posts/2026-04-12-3D-Printing-Biz.html
75•wespiser_2018•2d ago•65 comments

Nintendo's Empire of Secrets with Keza MacDonald – Factually with Adam Conover

https://art19.com/shows/factually--with-adam-conover/episodes/5154e9af-8885-4149-9721-173c02c46bb7/
14•tpoindex•1d ago•2 comments

Even "cat readme.txt" is not safe

https://blog.calif.io/p/mad-bugs-even-cat-readmetxt-is-not
76•arkadiyt•6h ago•40 comments

The GNU libc atanh is correctly rounded

https://inria.hal.science/hal-05591661
46•matt_d•2d ago•3 comments

The Unix Executable as a Smalltalk Method [video]

https://www.youtube.com/watch?v=sZjPQ7vtLNA
23•surprisetalk•1d ago•0 comments

Ban the sale of precise geolocation

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

Generating a color spectrum for an image

https://amandahinton.com/blog/generating-a-color-spectrum-for-an-image
9•evakhoury•2d ago•1 comments

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

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

Healthchecks.io now uses self-hosted object storage

https://blog.healthchecks.io/2026/04/healthchecks-io-now-uses-self-hosted-object-storage/
142•zdw•10h ago•63 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
70•mellosouls•2d ago•14 comments

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

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