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

Comments

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

SparkFun Officially Dropping AdaFruit due to CoC Violation

https://www.sparkfun.com/official-response
140•yaleman•54m ago•73 comments

I Hate GitHub Actions with Passion

https://xlii.space/eng/i-hate-github-actions-with-passion/
155•xlii•4h ago•121 comments

Why some clothes shrink in the wash – and how to 'unshrink' them

https://www.swinburne.edu.au/news/2025/08/why-some-clothes-shrink-in-the-wash-and-how-to-unshrink...
27•OptionOfT•3d ago•9 comments

There's a ridiculous amount of tech in a disposable vape

https://blog.jgc.org/2026/01/theres-ridiculous-amount-of-tech-in.html
577•abnercoimbre•1d ago•498 comments

I’m leaving Redis for SolidQueue

https://www.simplethread.com/redis-solidqueue/
190•amalinovic•6h ago•80 comments

FBI raids Washington Post reporter's home in 'highly unusual and aggressive' act

https://www.theguardian.com/us-news/2026/jan/14/fbi-raid-washington-post-hannah-natanson
90•echelon_musk•31m ago•12 comments

India's Electric Two-Wheeler Market: Rise, Reset and What Comes Next

https://micromobility.io/news/indias-electric-two-wheeler-market-rise-reset-and-what-comes-next
27•prabinjoel•4d ago•19 comments

Show HN: Tiny FOSS Compass and Navigation App (<2MB)

https://github.com/CompassMB/MBCompass
73•nativeforks•4h ago•24 comments

Is Rust faster than C?

https://steveklabnik.com/writing/is-rust-faster-than-c/
155•vincentchau•3d ago•131 comments

1000 Blank White Cards

https://en.wikipedia.org/wiki/1000_Blank_White_Cards
274•eieio•12h ago•49 comments

Why NUKEMAP isn't on Google Maps anymore (2019)

https://blog.nuclearsecrecy.com/2019/12/13/why-nukemap-isnt-on-google-maps-anymore/
84•fanf2•2h ago•11 comments

Lago (Open-Source Billing) is hiring across teams and geos

1•Rafsark•3h ago

Edge of Emulation: Game Boy Sewing Machines

https://shonumi.github.io/articles/art22.html
6•mosura•53m ago•0 comments

System Programming in Linux: A Hands-On Introduction "Demo" Programs

https://github.com/stewartweiss/intro-linux-sys-prog
36•teleforce•5h ago•2 comments

ASCII Clouds

https://caidan.dev/portfolio/ascii_clouds/
270•majkinetor•13h ago•50 comments

Every GitHub object has two IDs

https://www.greptile.com/blog/github-ids
288•dakshgupta•23h ago•65 comments

Never-before-seen Linux malware is "more advanced than typical"

https://arstechnica.com/security/2026/01/never-before-seen-linux-malware-is-far-more-advanced-tha...
14•Brajeshwar•47m ago•0 comments

A 40-line fix eliminated a 400x performance gap

https://questdb.com/blog/jvm-current-thread-user-time/
313•bluestreak•16h ago•66 comments

Putting the "You" in CPU (2023)

https://cpu.land/
78•vinhnx•4d ago•12 comments

Show HN: OSS AI agent that indexes and searches the Epstein files

https://epstein.trynia.ai/
145•jellyotsiro•13h ago•74 comments

The Gleam Programming Language

https://gleam.run/
204•Alupis•12h ago•116 comments

Systematically generating tests that would have caught Anthropic's top‑K bug

https://theorem.dev/blog/anthropic-bug-test/
37•jasongross•2d ago•9 comments

Servo 2025 Stats

https://blogs.igalia.com/mrego/servo-2025-stats/
137•todsacerdoti•3h ago•38 comments

No management needed: anti-patterns in early-stage engineering teams

https://www.ablg.io/blog/no-management-needed
252•tonioab•20h ago•274 comments

The truth behind the 2026 J.P. Morgan Healthcare Conference

https://www.owlposting.com/p/the-truth-behind-the-2026-jp-morgan
287•abhishaike•21h ago•67 comments

vLLM large scale serving: DeepSeek 2.2k tok/s/h200 with wide-ep

https://blog.vllm.ai/2025/12/17/large-scale-serving.html
130•robertnishihara•23h ago•43 comments

The $LANG Programming Language

239•dang•15h ago•45 comments

FBI Searches Home of Washington Post Journalist for Classified Documents

https://www.nytimes.com/2026/01/14/us/politics/fbi-washington-post-journalist.html
13•perihelions•1h ago•0 comments

Are two heads better than one?

https://eieio.games/blog/two-heads-arent-better-than-one/
190•evakhoury•23h ago•57 comments

Show HN: 1D-Pong Game at 39C3

https://github.com/ogermer/1d-pong
54•oger•2d ago•12 comments