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

Where does next-token prediction leave us?

https://pop.rdi.sh/where-does-next-token-prediction-leave-us/
129•0x5FC3•4h ago•68 comments

The just-say-no engineer was a ZIRP phenomenon

https://www.seangoedecke.com/the-just-say-no-engineer-was-a-zirp-phenomenon/
99•jxmorris12•2h ago•80 comments

Splinter Cell veteran says realistic modern lighting has screwed up stealth game

https://www.rockpapershotgun.com/splinter-cell-veteran-says-realistic-modern-lighting-has-screwed...
28•Tomte•2d ago•0 comments

Cloudflare Flagship

https://developers.cloudflare.com/flagship/
150•tjek•6h ago•70 comments

Chemistry behind the Garden Grove chemical tank

https://www.science.org/content/blog-post/methyl-methacrylate-tank
296•nooks•10h ago•110 comments

The Forgotten Art of the LAN Party (2023)

https://www.superjumpmagazine.com/the-forgotten-art-of-the-lan-party/
94•susam•3d ago•26 comments

A few interesting modern pixel fonts

https://unsung.aresluna.org/a-few-interesting-modern-pixel-fonts/
307•zdw•1d ago•66 comments

I Bypassed Adobe and Microsoft to Build a Git-Tracked Book Production Pipeline

https://www.djspeckhals.com/posts/2026-05-22-how-i-bypassed-adobe-and-microsoft-to-build-a-git-tr...
202•dustin1114•4d ago•58 comments

A History of Obituaries in American Newspapers

https://blogs.loc.gov/headlinesandheroes/2026/05/mourn-not-a-history-of-obituaries-in-american-ne...
8•NaOH•2d ago•0 comments

From Rust to Ruby

https://xlii.space/eng/from-rust-to-ruby/
87•xlii•8h ago•51 comments

IBM Confidential: System/360 File Organization [video]

https://www.youtube.com/watch?v=zokKqP0plrM
22•DaiPlusPlus•2d ago•3 comments

The worst job interview I ever had

https://www.oliverio.dev/blog/the-worst-job-interview-i-had
168•oliverio•9h ago•143 comments

Tunecat: Simple Internet Radio

https://codeberg.org/lindenii/tunecat/
32•croottree•4h ago•0 comments

A portentous reunion

https://bcantrill.dtrace.org/2026/05/25/a-portentous-reunion/
81•cafkafk•1d ago•24 comments

Launch HN: Minicor (YC P26) – Windows desktop automations at scale

https://www.minicor.com/
85•fchishtie•15h ago•53 comments

Rosalind: A genomics toolkit in Rust running whole-genome pipelines on a laptop

https://github.com/logannye/rosalind
148•samuell•5d ago•37 comments

Big tech's anti-labor playbook has come for Wikipedia

https://medium.com/@jakeorlowitz/wikipedia-is-doing-the-capitalist-thing-56a393232943
432•cdrnsf•9h ago•249 comments

Spain blocks prediction markets Polymarket, Kalshi over lack of gambling licence

https://www.reuters.com/business/spain-blocks-prediction-markets-polymarket-kalshi-over-lack-gamb...
851•thm•16h ago•393 comments

What I've Learned (So Far) Building Online Mini Games with Elixir and Swift

https://calvinflegal.com/2026/05/24/what-ive-learned-so-far-building-online-mini-games-with-elixi...
26•calflegal•2d ago•14 comments

Dropbox CEO Drew Houston to step down

https://www.cnbc.com/2026/05/26/dropbox-ceo-drew-houston-ashraf-alkarmi.html
329•aghuang•16h ago•351 comments

Erin Brockovich made a map to track data centers around the country

https://www.niemanlab.org/2026/05/erin-brockovich-made-a-map-to-track-data-centers-around-the-cou...
189•cratermoon•5h ago•185 comments

Stripe is friendly to “friendly fraud”

https://www.gingerlime.com/2026/stripe-seem-friendly-to-friendly-fraud/
202•gingerlime•5h ago•135 comments

Use boring languages with LLMs

https://jry.io/writing/use-boring-languages-with-llms/
207•evakhoury•4d ago•151 comments

The Steinwinter Supercargo

https://www.thedrive.com/article/12603/the-forgotten-steinwinter-supercargo-is-unlike-anything-on...
59•itronitron•3d ago•15 comments

Sonny Rollins, jazz saxophonist, has died

https://www.rollingstone.com/music/music-news/sonny-rollins-jazz-legend-saxophone-colossus-dead-o...
91•boarsofcanada•6h ago•13 comments

What color is your function? (2015)

https://journal.stuffwithstuff.com/2015/02/01/what-color-is-your-function/
114•tosh•14h ago•140 comments

The real cost of owning a home

https://ericturner.dev/posts/cost-of-home-ownership/
341•ggcr•13h ago•712 comments

C64 Basic: Game Map Overhead “Camera View”

https://retrogamecoders.com/overhead-camera-view/
84•ibobev•16h ago•11 comments

Outsourcing plus local AI will soon become more economical vs. frontier labs

https://www.signalbloom.ai/posts/outsourcing-plus-localai-will-soon-become-more-economical-vs-fro...
270•GodelNumbering•17h ago•294 comments

Sage Care (YC S24) Is Hiring Software Engineers

https://www.ycombinator.com/companies/sagecare/jobs/xtloH8r-senior-software-engineer
1•ian-gillis•13h ago