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.

Apertus – Open Foundation Model for Sovereign AI

https://apertvs.ai/
126•T-A•2h ago•36 comments

Did my old job only exist because of fraud?

https://david.newgas.net/did-my-old-job-only-exist-because-of-fraud/
121•advisedwang•2h ago•38 comments

Everything Is Logarithms

https://alexkritchevsky.com/2026/05/25/everything-is-logarithms.html
72•E-Reverance•2h ago•10 comments

PowerFox Browser

https://powerfox.jazzzny.me/
47•thisislife2•2h ago•13 comments

JSON-LD Explained for Personal Websites

https://hawksley.dev/blog/json-ld-explained-for-personal-websites/
138•ethanhawksley•5h ago•37 comments

Stop wasting tokens and re explaining your project between sessions

https://github.com/raiyanyahya/recall
54•mateenah•2h ago•41 comments

Prefer duplication over the wrong abstraction (2016)

https://sandimetz.com/blog/2016/1/20/the-wrong-abstraction
414•rafaepta•7h ago•273 comments

Identity verification on Claude

https://support.claude.com/en/articles/14328960-identity-verification-on-claude
513•bathory•11h ago•475 comments

Simple hard way to conjugate Japanese verbs

https://underreacted.leaflet.pub/3mmevu6woys27
8•valzevul•1h ago•3 comments

I Gave an AI a Civilization to Run. It Built a Nuke – Launching CivBench

https://www.lwilko.com/blog/i-gave-an-ai-a-civilization
14•LiamWilko•1h ago•5 comments

HPV jabs cut risk of dying from cervical cancer before 30 to almost zero

https://www.theguardian.com/society/2026/jun/17/hpv-jabs-reduce-risk-dying-cervical-cancer-before...
100•toomuchtodo•3d ago•39 comments

Beyond All Reason (Free Total Annihilation Inspired RTS)

https://www.beyondallreason.info
416•mosiuerbarso•12h ago•249 comments

The minimum viable unit of saleable software

https://brandur.org/minimum-viable-unit
113•brandur•7h ago•46 comments

(How to Write a (Lisp) Interpreter (In Python)) (2010)

https://norvig.com/lispy.html
160•tosh•8h ago•51 comments

FDA advisors unanimously vote to approve Moderna's mRNA after agency drama

https://arstechnica.com/health/2026/06/fda-advisors-unanimously-vote-to-approve-modernas-mrna-aft...
67•worik•2h ago•34 comments

An Embedded Linux on a Single Floppy

https://github.com/w84death/floppinux
54•modinfo•2d ago•23 comments

Ask for no, don't ask for yes (2022)

https://www.mooreds.com/wordpress/archives/3518
85•skogstokig•3h ago•40 comments

Show HN: CleverCrow: give tokens to your favorite projects

https://clevercrow.io
29•zhubert•4h ago•43 comments

There is minimal downside to switching to open models

https://www.marble.onl/posts/cancel_claude.html
10•amarble•2h ago•0 comments

Wildcard (YC W25) is hiring an applied ML engineer

https://www.ycombinator.com/companies/wildcard/jobs/SEmo4di-founding-applied-ml-engineer
1•kaushikmahorker•6h ago

Minecraft: Java Edition 26.2, the first version with Vulkan 1.2

https://www.minecraft.net/en-us/article/minecraft-java-edition-26-2
33•ObviouslyFlamer•4d ago•8 comments

Show HN: Teach your kids perfect pitch

https://github.com/paytonjjones/bsharp
34•paytonjjones•11h ago•22 comments

Tell HN: Happy Fathers Day

239•consumer451•6h ago•31 comments

Cocktail Optimization, an Integer Programming Problem

https://bunkum.us/2026/06/18/cocktail-ingredients-milp
26•ftgregg•2d ago•4 comments

Occupancy Math on the AMD MI355X: A From-First-Principles Guide

https://indianspeedster.github.io/blog/occupancy-math-mi355x/
42•skidrow•4d ago•4 comments

Djevops: Self-Host Django Easily

https://github.com/mherrmann/djevops
21•mherrmann•3d ago•5 comments

A 3D voxel game engine written in APL

https://github.com/namgyaaal/avoxelgame
147•sph•15h ago•13 comments

Developers don't understand CORS (2019)

https://fosterelli.co/developers-dont-understand-cors
355•toilet•22h ago•251 comments

Running MicroVMs in Proxmox VE, the Easy Way

https://taoofmac.com/space/blog/2026/06/18/1845
210•zdw•2d ago•38 comments

Proportional-Integral-Derivative (PID) controllers

https://en.wikipedia.org/wiki/PID_controller
92•dhorthy•2d ago•51 comments