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.

Meta workers can opt out of being tracked at work up to 30 min

https://www.bbc.com/news/articles/c93x0k194yno
87•reconnecting•1h ago•48 comments

Hacking your PC using your speaker without ever touching it

https://blog.nns.ee/2026/06/03/katana-badusb/
256•xx_ns•2h ago•49 comments

Every Byte Matters

https://fzakaria.com/2026/06/01/every-byte-matters
99•ingve•2h ago•26 comments

PlayStation Architecture

https://www.copetti.org/writings/consoles/playstation/
79•gregsadetsky•3h ago•11 comments

Nabokov's pale fire: the lost 'father of all hypertext demos'? (2011)

https://dl.acm.org/doi/pdf/10.1145/1995966.1996008
48•aragonite•2d ago•5 comments

Show HN: Edsger – A handwritten Clojure REPL for the reMarkable 2

https://handwritten.danieljanus.pl/2026-06-01-edsger.html
122•nathell•18h ago•23 comments

1-Click GitHub Token Stealing via a VSCode Bug

https://blog.ammaraskar.com/github-token-stealing/
524•ammar2•22h ago•76 comments

32GB of DDR5 now costs $375 – AI shortage continues to squeeze PC building

https://www.tomshardware.com/pc-components/ddr5/32gb-of-ddr5-now-costs-usd375-minimum-ai-shortage...
55•papersail•1h ago•36 comments

Turkey Hacked the Hair Transplant Industry

https://www.wired.com/story/how-turkey-hacked-the-hair-transplant-industry/
35•joozio•2d ago•21 comments

Piramidal (YC W24) – Software Engineers – NYC Onsite

1•dsacellarius•1h ago

Show HN: I reverse-engineered the world maps of Test Drive III (1990 DOS game)

https://github.com/s-macke/Test-Drive-3-Maps
154•s-macke•3d ago•40 comments

Use your Nvidia GPU's VRAM as swap space on Linux

https://github.com/c0dejedi/nbd-vram
371•tanelpoder•14h ago•99 comments

MAI-Code-1-Flash

https://microsoft.ai/news/introducingmai-code-1-flash/
499•EvanZhouDev•19h ago•231 comments

Take Action: LAPD Removed Crime Location Data. Here's Why It Matters

https://blog.spotcrime.com/2026/06/take-action-lapd-removed-crime-location.html
8•apwheele•46m ago•4 comments

The Unreasonable Redundancy of Nature's Protein Folds

https://research.ligo.bio/posts/unreasonable-redundancy-of-natural-protein-folds/
128•ray__•10h ago•37 comments

Leiden Declaration on Artificial Intelligence and Mathematics

https://leidendeclaration.ai/
51•zvr•7h ago•17 comments

AI outperforms law professors in Stanford Law study

https://law.stanford.edu/press/ai-outperforms-law-professors-in-stanford-law-study/
327•berlianta•14h ago•276 comments

What I've learned about the trombone

http://bryanhu.com/blog/posts/what-ive-learned-about-the-trombone/
20•bookofjoe•2h ago•16 comments

DIY Bipedal Robot Used Pneumatic "Air-Muscles" Instead of Motors

https://spectrum.ieee.org/shadow-walker-biped-humanoid-robot
45•sohkamyung•3d ago•13 comments

Pluto.jl 1.0 release – reactive notebook for Julia

https://discourse.julialang.org/t/pluto-1-0-release/137296
173•fons-p•14h ago•25 comments

My thoughts after using Clojure for about a month

https://www.acdw.net/clojure/
259•speckx•17h ago•130 comments

U of T researchers demonstrate AI worm could target any online device

https://www.utoronto.ca/news/u-t-researchers-demonstrate-ai-worm-could-target-any-online-device
78•shscs911•10h ago•22 comments

Roku LT Operating System open source distribution

https://blog.roku.com/developer/roku-lt-os
96•dpmdpm•12h ago•36 comments

Capstone – multi-platform, multi-architecture disassembly framework

https://www.capstone-engine.org/
77•gregsadetsky•11h ago•3 comments

CT scans of BYD car parts

https://www.lumafield.com/scan-of-the-month/byd
438•viasfo•17h ago•289 comments

Writing Portable ARM64 Assembly (2023)

https://ariadne.space/2023/04/12/writing-portable-arm-assembly.html
41•luu•2d ago•15 comments

How we index images for RAG

https://www.kapa.ai/blog/how-we-index-images-for-rag
174•mooreds•21h ago•23 comments

HP re-releases classic computer science calculator: The HP-16C

https://hpcalcs.com/product/hp-16c-collectors-edition/
189•dm319•18h ago•118 comments

Words of Type

https://wiki.wordsoftype.com/
101•tobr•2d ago•12 comments

Gmail thinks I'm stupid, so I left

https://moddedbear.com/gmail-thinks-im-stupid-so-i-left
1063•speckx•18h ago•716 comments