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.

Cowork: Claude Code for the rest of your work

https://claude.com/blog/cowork-research-preview
866•adocomplete•12h ago•398 comments

TimeCapsuleLLM: LLM trained only on data from 1800-1875

https://github.com/haykgrigo3/TimeCapsuleLLM
572•admp•15h ago•230 comments

Text-Based Web Browsers

https://cssence.com/2026/text-based-web-browsers/
20•pabs3•2h ago•8 comments

The Cray-1 Computer System (1977) [pdf]

https://s3data.computerhistory.org/brochures/cray.cray1.1977.102638650.pdf
81•LordGrey•3d ago•44 comments

Postal Arbitrage

https://walzr.com/postal-arbitrage
364•The28thDuck•13h ago•183 comments

Implementing a web server in a single printf() call (2014)

https://tinyhack.com/2014/03/12/implementing-a-web-server-in-a-single-printf-call/
32•nateb2022•4d ago•2 comments

The chess bot on Delta Air Lines will destroy you (2024) [video]

https://www.youtube.com/watch?v=c0mLhHDcY3I
211•cjaackie•11h ago•163 comments

Provenance Is the New Version Control

https://aicoding.leaflet.pub/3mcbiyal7jc2y
33•gpi•4h ago•26 comments

Floppy disks turn out to be the greatest TV remote for kids

https://blog.smartere.dk/2026/01/floppy-disks-the-best-tv-remote-for-kids/
566•mchro•18h ago•328 comments

Some ecologists fear their field is losing touch with nature

https://www.nature.com/articles/d41586-025-04150-w
93•Growtika•4d ago•46 comments

Unauthenticated remote code execution in OpenCode

https://cy.md/opencode-rce/
294•CyberShadow•1d ago•90 comments

Date is out, Temporal is in

https://piccalil.li/blog/date-is-out-and-temporal-is-in/
357•alexanderameye•16h ago•137 comments

Fabrice Bellard's TS Zip (2024)

https://www.bellard.org/ts_zip/
143•everlier•11h ago•57 comments

LLVM: The bad parts

https://www.npopov.com/2026/01/11/LLVM-The-bad-parts.html
324•vitaut•17h ago•60 comments

Apple picks Gemini to power Siri

https://www.cnbc.com/2026/01/12/apple-google-ai-siri-gemini.html
789•stygiansonic•16h ago•468 comments

Show HN: AI in SolidWorks

https://www.trylad.com
148•WillNickols•14h ago•82 comments

Kafka Inc

https://libertiesjournal.com/online-articles/kafkainc/
7•Caiero•5d ago•2 comments

Zirgen: Compiler for a Domain-Specific Language

https://github.com/risc0/zirgen
3•0xkato•4d ago•0 comments

Anthropic made a mistake in cutting off third-party clients

https://archaeologist.dev/artifacts/anthropic
272•codesparkle•20h ago•186 comments

Show HN: Yolobox – Run AI coding agents with full sudo without nuking home dir

https://github.com/finbarr/yolobox
78•Finbarr•12h ago•60 comments

Show HN: Agent-of-empires: OpenCode and Claude Code session manager

https://github.com/njbrake/agent-of-empires
86•river_otter•17h ago•24 comments

Windows 8 Desktop Environment for Linux

https://github.com/er-bharat/Win8DE
176•edent•18h ago•163 comments

F2 (YC S25) Is Hiring

https://www.ycombinator.com/companies/f2/jobs/cJsc7Fe-product-designer
1•arctech•8h ago

The struggle of resizing windows on macOS Tahoe

https://noheger.at/blog/2026/01/11/the-struggle-of-resizing-windows-on-macos-tahoe/
2610•happosai•1d ago•1115 comments

Google removes AI health summaries after investigation finds dangerous flaws

https://arstechnica.com/ai/2026/01/google-removes-some-ai-health-summaries-after-investigation-fi...
154•barishnamazov•8h ago•88 comments

Ozempic is changing the foods Americans buy

https://news.cornell.edu/stories/2025/12/ozempic-changing-foods-americans-buy
377•giuliomagnifico•19h ago•684 comments

Show HN: Fall asleep by watching JavaScript load

https://github.com/sarusso/bedtime
63•sarusso•12h ago•21 comments

Zen-C: Write like a high-level language, run like C

https://github.com/z-libs/Zen-C
182•simonpure•18h ago•108 comments

Why BM25 queries with more terms can be faster (and other scaling surprises)

https://turbopuffer.com/blog/bm25-latency-musings
15•_peregrine_•4d ago•0 comments

Message Queues: A Simple Guide with Analogies (2024)

https://www.cloudamqp.com/blog/message-queues-exaplined-with-analogies.html
93•byt3h3ad•14h ago•25 comments