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•11mo ago

Comments

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

Bun is being ported from Zig to Rust

https://github.com/oven-sh/bun/commit/46d3bc29f270fa881dd5730ef1549e88407701a5
185•SergeAx•1h ago•107 comments

How OpenAI delivers low-latency voice AI at scale

https://openai.com/index/delivering-low-latency-voice-ai-at-scale/
304•Sean-Der•7h ago•106 comments

Talking to strangers at the gym

https://thienantran.com/talking-to-35-strangers-at-the-gym/
1196•thitran•15h ago•564 comments

What I'm Hearing About Cognitive Debt (So Far)

https://margaretstorey.com/blog/2026/02/18/cognitive-debt-revisited/
19•raphaelcosta•49m ago•1 comments

Agent Skills

https://addyosmani.com/blog/agent-skills/
135•BOOSTERHIDROGEN•5h ago•45 comments

Securing a DoD contractor: Finding a multi-tenant authorization vulnerability

https://www.strix.ai/blog/how-strix-found-zero-auth-vulnerability-dod-backed-startup
176•bearsyankees•9h ago•76 comments

When Networking Doesn't Work

https://www.os2museum.com/wp/when-networking-doesnt-work/
11•kencausey•6h ago•3 comments

Testing macOS on the Apple Network Server 2.0 ROMs

http://oldvcr.blogspot.com/2026/05/testing-macos-on-apple-network-server.html
61•zdw•1d ago•11 comments

Does Employment Slow Cognitive Decline? Evidence from Labor Market Shocks

https://www.nber.org/papers/w35117
223•littlexsparkee•11h ago•215 comments

Redis array: short story of a long development process

https://antirez.com/news/164
245•antirez•12h ago•83 comments

Microsoft Edge stores all passwords in memory in clear text, even when unused

https://twitter.com/L1v1ng0ffTh3L4N/status/2051308329880719730
437•cft•8h ago•155 comments

1966 Ford Mustang Converted into a Tesla with Working 'Full Self-Driving'

https://electrek.co/2026/05/02/tesla-1966-mustang-ev-conversion-full-self-driving/
139•Brajeshwar•11h ago•108 comments

I am worried about Bun

https://wwj.dev/posts/i-am-worried-about-bun/
426•remote-dev•10h ago•285 comments

How Monero’s proof of work works

https://blog.alcazarsec.com/tech/posts/how-moneros-proof-of-work-works
249•alcazar•12h ago•185 comments

Show HN: I Built a Museum Exhibit

https://knhash.in/built-an-exhibit/
15•kn81198•2d ago•0 comments

Formatting a 25M-line codebase overnight

https://stripe.dev/blog/formatting-an-entire-25-million-line-codebase-overnight-the-rubyfmt-story
131•r00k•6h ago•68 comments

PyInfra 3.8.0

https://github.com/pyinfra-dev/pyinfra/releases/tag/v3.8.0
230•wowi42•14h ago•84 comments

Pomiferous: The most extensive apples (pommes) database

https://pomiferous.com/
105•Ariarule•12h ago•43 comments

UK Fuel Price Intelligence – Market analytics from reporting stations

https://www.fuelinsight.co.uk
163•theazureguy•11h ago•76 comments

Y Combinator's Stake in OpenAI (0.6%)

https://daringfireball.net/2026/05/y_combinators_stake_in_openai
80•gyomu•2h ago•0 comments

Transformers Are Inherently Succinct (2025)

https://arxiv.org/abs/2510.19315
35•bearseascape•6h ago•6 comments

GameStop makes $55.5B takeover offer for eBay

https://www.bbc.co.uk/news/articles/cn0p8yled1do
647•n1b0m•17h ago•616 comments

Buffon's needle problem visualized

https://ivanludvig.dev/pi-needle/
9•IvanLudvig•2d ago•3 comments

US healthcare marketplaces shared citizenship and race data with ad tech giants

https://techcrunch.com/2026/05/04/us-healthcare-marketplaces-shared-citizenship-and-race-data-wit...
433•ZeidJ•9h ago•149 comments

Sierra Raises $950M at $15B Valuation

https://sierra.ai/blog/better-customer-experiences-built-on-sierra
94•doppp•11h ago•119 comments

Show HN: nfsdiag – A NFS diagnostic application

https://github.com/lsferreira42/nfsdiag
57•lsferreira42•2d ago•3 comments

Stop big tech from making users behave in ways they don't want to

https://economist.com/by-invitation/2026/04/29/stop-big-tech-from-making-users-behave-in-ways-the...
227•andsoitis•9h ago•155 comments

The Visible Zorker: Zork 3

https://eblong.com/infocom/visi/zork3/
57•zarlez•9h ago•6 comments

Re: Slow USB storage device? (util-Linux-ng, 2010)

https://marc.info/?l=util-linux-ng&m=126351534518733&w=2
9•juliusdavies•2d ago•0 comments

Heat pump sales rise across Europe

https://www.pv-magazine.com/2026/05/04/heat-pump-sales-rise-17-across-europe-in-q1-as-energy-pric...
218•doener•9h ago•129 comments