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.

CRISPR tech selectively shreds cancer cells, including "undruggable" cancers

https://innovativegenomics.org/news/crispr-technique-selectively-shreds-cancer-cells/
405•gmays•4h ago•108 comments

I Am Not a Reverse Centaur

https://blog.miguelgrinberg.com/post/i-am-not-a-reverse-centaur
115•ibobev•1h ago•72 comments

How to Setup a Local Coding Agent on macOS

https://ikyle.me/blog/2026/how-to-setup-a-local-coding-agent-on-macos
83•kkm•2h ago•27 comments

Malware developers added nuclear and biological weapons text to to their spyware

https://twitter.com/jsrailton/status/2064661778978533571
134•marc__1•23h ago•86 comments

Pirates, a naval warfare game inspired by Sid Meier's Pirates

https://piwodlaiwo.github.io/pirates/
69•iweczek•2h ago•27 comments

A PDF that changes based on how its read

https://sgaud.com/texts/pdf
75•SarthakGaud•3h ago•36 comments

Looking Forward to Postgres 19: It's About Time

https://www.pgedge.com/blog/looking-forward-to-postgres-19-its-about-time
74•xngbuilds•2h ago•20 comments

Slightly reducing the sloppiness of AI generated front end

https://envs.net/~volpe/blog/posts/reduce-slop.html
125•FergusArgyll•4h ago•81 comments

A dumpster arrived behind my university's library

https://yalereview.org/article/sheila-liming-the-end-of-books
126•mooreds•5h ago•102 comments

Law Enforcement's "Warrior" Problem (2015)

https://harvardlawreview.org/forum/vol-128/law-enforcements-warrior-problem/
37•bookofjoe•2h ago•33 comments

Where Did Earth Get Its Oceans? Maybe It Made Them Itself

https://www.quantamagazine.org/where-did-earth-get-its-oceans-maybe-it-made-them-itself-20260612/
72•ibobev•4h ago•43 comments

A Peter Thiel-Backed Tribunal Is Putting Journalists on Trial

https://www.hollywoodreporter.com/business/business-news/peter-thiel-tribunal-journalists-trial-1...
61•cdrnsf•1h ago•12 comments

Launch HN: BitBoard (YC P25) – Analytics Workspace for Agents

https://bitboard.work/
18•arcb•2h ago•8 comments

There Is Life Before Main in Rust

https://grack.com/blog/2026/06/11/life-before-main/
38•mmastrac•1d ago•11 comments

AI agent bankrupted their operator while trying to scan DN42

https://lantian.pub/en/article/fun/ai-agent-bankrupted-their-operator-scan-dn42lantian.lantian/
1328•xiaoyu2006•15h ago•476 comments

Introduction to UEFI HTTP(s) Boot with QEMU/OVMF

https://blog.yadutaf.fr/2026/06/12/introduction-to-uefi-https-boot-qemu-ovmf/
39•jtlebigot•4h ago•11 comments

Maxproof

https://arxiv.org/abs/2606.13473
115•ilreb•7h ago•9 comments

A Call to Action: Stop the FCC's KYC Regime

https://blog.lopp.net/call-to-action-stop-the-fcc-kyc-regime/
276•FergusArgyll•5h ago•176 comments

Hazel (YC W24) Is Hiring a Full Stack Engineer

https://www.ycombinator.com/companies/hazel-2/jobs/3epPWgu-full-stack-engineer-ts-sci
1•augustschen•6h ago

Cosmodial Sky Atlas

https://killedbyapixel.github.io/Cosmodial/
11•memalign•1h ago•1 comments

Show HN: StackScope – I crawled over 40k indie launches to see what they ship

https://stackscope.dev/
29•datafreak_•4h ago•8 comments

WASI 0.3

https://bytecodealliance.org/articles/WASI-0.3
199•mavdol04•5h ago•80 comments

"Don't You Just Upload It to ChatGPT?"

https://correresmidestino.com/dont-you-just-upload-it-to-chatgpt/
99•speckx•1h ago•93 comments

I Won't Buy You a Coffee

https://hakkerman.eu/blog/i-wont-buy-you-a-coffee/
56•speckx•1h ago•41 comments

If you are asking for human attention, demonstrate human effort

https://tombedor.dev/human-attention-and-human-effort/
1396•jjfoooo4•20h ago•441 comments

Keygen.music

https://keygen.music
106•soupspaces•4h ago•63 comments

New privacy frontier: Europe eyes crackdown on smart glasses

https://www.politico.com/www.politico.eu/article/new-privacy-frontier-europe-eyes-crackdown-smart...
56•1vuio0pswjnm7•3h ago•36 comments

How we made hit video game Prince of Persia

https://www.theguardian.com/culture/2026/jan/05/raiders-of-the-lost-ark-hit-video-game-prince-of-...
250•msephton•2d ago•101 comments

Encrypted Spaces An architecture for collaborative applications

https://encryptedspaces.org/
49•_____k•7h ago•5 comments

Show HN: Script to bulk delete Claude chats from the web UI

https://github.com/MatteoLeonesi/bulk-delete-claude-chat
43•ML0037•4h ago•15 comments