frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Right-Truncatable Prime Counter

https://github.com/EbodShojaei/Right-Truncatable-Primes
9•rainmans•1y ago

Comments

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

Your ePub Is fine

https://andreklein.net/your-epub-is-fine-kobo-disagrees-blame-adobe/
641•sohkamyung•12h ago•213 comments

Apple Foundation Models

https://platform.claude.com/docs/en/cli-sdks-libraries/libraries/apple-foundation-models
177•MehrdadKhnzd•6h ago•67 comments

Anthropic's Safety Superpower

https://stratechery.com/2026/anthropics-safety-superpower/
8•swolpers•56m ago•1 comments

What the Fuck Happened to Nerds

https://mrmarket.lol/what-the-fuck-happened-to-nerds/
212•vrnvu•2h ago•140 comments

Even more batteries included with Emacs

https://karthinks.com/software/even-more-batteries-included-with-emacs/
220•signa11•8h ago•46 comments

Openrouter Fusion API

https://openrouter.ai/openrouter/fusion
36•tdchaitanya•3h ago•9 comments

Foreign business owners are scrambling to raise capital to stay in Japan

https://tokyopaladin.substack.com/p/foreign-business-owners-are-scrambling
30•zdw•3d ago•1 comments

Curl will not accept vulnerability reports during July 2026

https://daniel.haxx.se/blog/2026/06/15/curl-summer-of-bliss/
445•secret-noun•4h ago•176 comments

Show HN: Kage – Shadow any website to a single binary for offline viewing

https://github.com/tamnd/kage
573•tamnd•17h ago•112 comments

There Is(Ǝ) – Such That (∋)

https://www.fractalkitty.com/there-is-3-such-that/
49•evakhoury•3d ago•16 comments

Bitsy

https://bitsy.org/
207•tosh•3d ago•6 comments

Firewood Splitting Simulator

https://screen.toys/firewood/
838•memalign•5d ago•247 comments

Dalus (YC W25) Is Hiring a Senior Software Engineer in Germany

https://www.ycombinator.com/companies/dalus/jobs/5IDmKJt-senior-software-frontend-engineer-german...
1•sebastianvoelkl•4h ago

Being an old school web-based sports sim dev in the era of vibe coded games

https://zengm.com/blog/2026/06/vibecoded-games/
17•YesBox•2d ago•12 comments

21 years and counting of 'eight fallacies of distributed computing' (2025)

https://blog.apnic.net/2025/12/08/21-years-and-counting-of-eight-fallacies-of-distributed-computing/
94•teleforce•10h ago•22 comments

Why does paper fold so well?

https://www.bbc.co.uk/programmes/w3ct8k70
51•zeristor•1d ago•19 comments

Rio de Janeiro's "homegrown" LLM appears to be a merge of an existing model

https://github.com/nex-agi/Nex-N2/issues/4
358•unrvl22•19h ago•193 comments

Exploring building a tiny FUSE filesystem

https://www.shayon.dev/post/2026/161/building-a-tiny-fuse-filesystem/
18•shayonj•2d ago•4 comments

Anthropic flies staff to D.C. to clean up White House fight

https://www.axios.com/2026/06/14/anthropic-white-house-mythos-fable
23•dstala•1h ago•22 comments

A short history of Cerro Torre, the most controversial mountain (2012)

https://www.markhorrell.com/blog/2012/a-short-history-of-cerro-torre/
46•joebig•4d ago•17 comments

Ask HN: What are you working on? (June 2026)

247•david927•18h ago•884 comments

Formal methods and the future of programming

https://blog.janestreet.com/formal-methods-at-jane-street-index/?from_theconsensus=1
278•eatonphil•22h ago•95 comments

Show HN: Trace – Offline Mac meeting transcripts you can flag mid-call

https://traceapp.info
168•AG342•1d ago•62 comments

Windows 11 users are tired of MS account requirements creeping into everything

https://www.windowscentral.com/microsoft/windows-11/windows-11-users-are-tired-of-microsoft-accou...
380•josephcsible•13h ago•253 comments

Chaosnet (1981)

https://tumbleweed.nu/r/lm-3/uv/amber.html
90•RGBCube•15h ago•12 comments

The only scalable delete in Postgres is DROP TABLE

https://planetscale.com/blog/the-only-scalable-delete
172•hollylawly•3d ago•63 comments

TorchCodec 0.14: HDR Video Decoding for CPU and CUDA, and Fast Wav Decoder

https://github.com/meta-pytorch/torchcodec/releases/tag/v0.14.0
49•scott_s•4d ago•5 comments

Perlisisms (1982)

https://www.cs.yale.edu/homes/perlis-alan/quotes.html
118•tosh•20h ago•58 comments

Caddy compatibility for zeroserve: 3x throughput and 70% lower latency

https://su3.io/posts/zeroserve-caddy-compat
188•losfair•21h ago•55 comments

Segmented type appreciation corner (2018)

https://aresluna.org/segmented-type/
74•unexpectedVCR•3d ago•16 comments