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•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.

The newest Instagram “exploit” is the goofiest I've seen

https://www.0xsid.com/blog/meta-account-takeover-fiasco
662•ssiddharth•3h ago•168 comments

GitHub and the Crime Against Software

https://eblog.fly.dev/githubbad.html
36•pplanu•38m ago•1 comments

AI Agent Guidelines for CS336 at Stanford

https://github.com/stanford-cs336/assignment1-basics/blob/main/CLAUDE.md
156•prakashqwerty•2h ago•77 comments

Lifelike biochemistry continued to unfold in sterilized soil

https://www.quantamagazine.org/the-dirt-that-refused-to-die-20260601/
130•speckx•4h ago•31 comments

Should you normalize RGB values by 255 or 256?

https://30fps.net/pages/255-vs-256-division/
46•pplanu•1h ago•12 comments

CS336: Language Modeling from Scratch

https://cs336.stanford.edu/
221•kristianpaul•5h ago•31 comments

Ask HN: Who is hiring? (June 2026)

95•whoishiring•4h ago•132 comments

I made my phone slow on purpose

https://vinewallapp.com/notes/i-made-my-phone-slow-on-purpose/
106•gcampos•4d ago•97 comments

A 10 year old Xeon is all you need

https://point.free/blog/gemma-4-on-a-2016-xeon/
593•cafkafk•12h ago•248 comments

Ask HN: Who wants to be hired? (June 2026)

48•whoishiring•4h ago•152 comments

Windows GOG DOS Games on M-Series Macs

https://f055.net/technology/windows-gog-dos-games-on-m-series-macs/
103•f055•6h ago•59 comments

Malicious npm packages detected across Red Hat Cloud Services

https://github.com/RedHatInsights/javascript-clients/issues/492
673•kurmiashish•6h ago•361 comments

Flipper Zero Zig Template

https://github.com/NishantJoshi00/flipper-template
99•Nars088•6h ago•5 comments

Stealing from Biologists to Compile Haskell Faster

https://www.iankduncan.com/engineering/2026-05-30-stealing-from-biologists-to-compile-haskell-fas...
26•mooreds•2d ago•2 comments

Hackers Used Meta's AI Support Bot to Seize Instagram Accounts

https://krebsonsecurity.com/2026/06/hackers-used-metas-ai-support-bot-to-seize-instagram-accounts/
4•panarky•14m ago•0 comments

The Pirate Bay Remains Resilient, 20 Years After the Raid

https://torrentfreak.com/the-pirate-bay-remains-resilient-20-years-after-the-raid/
363•speckx•5h ago•166 comments

Mumbai's famed dabbawalas fed millions for over 100 years

https://www.bbc.co.uk/news/articles/c202d0l92weo
7•frou_dh•1d ago•5 comments

Only 17% of all 64-bit Integers are products of two 32-bit integers

https://lemire.me/blog/2026/05/22/only-17-of-all-64-bit-integers-are-products-of-two-32-bit-integ...
149•sebg•4d ago•73 comments

Launch HN: Expanse (YC P26) – Unlock Wasted GPU Capacity

55•ismaeel_bashir•6h ago•11 comments

Sysadmining Like It's 2009

https://lambdacreate.com/posts/sysadmining-like-its-2009
64•yacin•5h ago•20 comments

Handmade Hawaiian Islands Map

https://www.notesfromtheroad.com/roam/hawaiian-islands-map.html
25•bovermyer•2d ago•9 comments

Nvidia RTX Spark

https://www.nvidia.com/en-us/products/rtx-spark/
191•shenli3514•14h ago•156 comments

Radxa Dragon Q8B: A Laptop Cosplaying as an SBC?

https://bret.dk/radxa-dragon-q8b-a-laptop-cosplaying-as-an-sbc/
40•gainsurier•5h ago•33 comments

Surface Laptop Ultra

https://blogs.windows.com/devices/2026/05/31/introducing-surface-laptop-ultra-made-for-world-makers/
82•berlianta•15h ago•128 comments

Show HN: A CSS 3D Engine (no WebGL)

https://github.com/LayoutitStudio/polycss
40•rofko•5h ago•17 comments

Linux Basics for Hackers (2019)

https://github.com/ahegazy0/linux-basics-for-hackers-notes
81•ibobev•6h ago•16 comments

Anthropic confidentially submits draft S-1 to the SEC

https://www.anthropic.com/news/confidential-draft-s1-sec
286•surprisetalk•3h ago•195 comments

Tracing HTTP Requests with Go's net/HTTP/httptrace

https://blainsmith.com/articles/httptrace-with-go/
154•speckx•4d ago•9 comments

"The Apple Boogie" 1987 Mac Promo Album Cassette Tape [video]

https://www.youtube.com/watch?v=chJHB-btMNI
36•1970-01-01•2d ago•9 comments

KDE at 30

https://kde.org/anniversaries/30/
192•Kye•5h ago•90 comments