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

Comments

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

Adversarial Poetry as a Universal Single-Turn Jailbreak Mechanism in LLMs

https://arxiv.org/abs/2511.15304
43•capgre•1h ago•36 comments

Interactive World History Atlas Since 3000 BC

http://geacron.com/home-en/
116•not_knuth•4h ago•74 comments

Show HN: Awesome J2ME

https://github.com/hstsethi/awesome-j2me
40•catstor•2h ago•18 comments

40 years ago, Calvin and Hobbes' raucous adventures burst onto the comics page

https://www.npr.org/2025/11/18/nx-s1-5564064/calvin-and-hobbes-bill-watterson-40-years-comic-stri...
85•mooreds•1h ago•17 comments

Android/Linux Dual Boot

https://wiki.postmarketos.org/wiki/Dual_Booting/WiP
157•joooscha•3d ago•85 comments

CUDA Ontology

https://jamesakl.com/posts/cuda-ontology/
145•gugagore•3d ago•19 comments

Basalt Woven Textile

https://materialdistrict.com/material/basalt-woven-textile/
138•rbanffy•8h ago•66 comments

Towards Interplanetary QUIC Traffic

https://ochagavia.nl/blog/towards-interplanetary-quic-traffic/
38•wofo•2d ago•5 comments

Scientists Reveal How the Maya Predicted Eclipses for Centuries

https://www.sciencealert.com/scientists-reveal-how-the-maya-predicted-eclipses-for-centuries
29•rguiscard•6d ago•6 comments

Europe is scaling back GDPR and relaxing AI laws

https://www.theverge.com/news/823750/european-union-ai-act-gdpr-changes
819•ksec•23h ago•925 comments

Meta Segment Anything Model 3

https://ai.meta.com/sam3/
546•lukeinator42•20h ago•110 comments

Loose wire leads to blackout, contact with Francis Scott Key bridge

https://www.ntsb.gov:443/news/press-releases/Pages/NR20251118.aspx
369•DamnInteresting•17h ago•164 comments

Wrapping my head around AI wrappers

https://www.wreflection.com/p/wrapping-my-head-around-ai-wrappers
11•nowflux•4d ago•4 comments

The lost cause of the Lisp machines

https://www.tfeb.org/fragments/2025/11/18/the-lost-cause-of-the-lisp-machines/
92•enbywithunix•18h ago•90 comments

AI is a front for consolidation of resources and power

https://www.chrbutler.com/what-ai-is-really-for
442•delaugust•18h ago•336 comments

DOS Days – Laptop Displays

https://www.dosdays.co.uk/topics/laptop_displays.php
26•nullbyte808•4h ago•4 comments

Verifying your Matrix devices is becoming mandatory

https://element.io/blog/verifying-your-devices-is-becoming-mandatory-2/
152•LorenDB•13h ago•168 comments

Researchers discover security vulnerability in WhatsApp

https://www.univie.ac.at/en/news/detail/forscherinnen-entdecken-grosse-sicherheitsluecke-in-whatsapp
266•KingNoLimit•17h ago•101 comments

New Proofs Probe Soap-Film Singularities

https://www.quantamagazine.org/new-proofs-probe-soap-film-singularities-20251112/
23•pseudolus•1w ago•0 comments

Show HN: I made a fireplace for your wrist (and widgets)

6•kingofspain•6d ago•0 comments

Building more with GPT-5.1-Codex-Max

https://openai.com/index/gpt-5-1-codex-max/
436•hansonw•19h ago•262 comments

Details about the shebang/hash-bang mechanism on various Unix flavours (2001)

https://www.in-ulm.de/%7Emascheck/various/shebang/
52•js2•8h ago•13 comments

Precise geolocation via Wi-Fi Positioning System

https://www.amoses.dev/blog/wifi-location/
202•nicosalm•15h ago•78 comments

A surprise with how '#!' handles its program argument in practice

https://utcc.utoronto.ca/~cks/space/blog/unix/ShebangRelativePathSurprise
67•SeenNotHeard•1d ago•54 comments

Students fight back over course taught by AI

https://www.theguardian.com/education/2025/nov/20/university-of-staffordshire-course-taught-in-la...
9•level87•31m ago•3 comments

What really happened with the CIA and The Paris Review?

https://www.theparisreview.org/blog/2025/11/11/what-really-happened-with-the-cia-and-the-paris-re...
75•frenzcan•1w ago•10 comments

PHP 8.5

https://stitcher.io/blog/new-in-php-85
161•brentroose•7h ago•97 comments

Launch HN: Mosaic (YC W25) – Agentic Video Editing

https://mosaic.so
129•adishj•22h ago•119 comments

CLI tool to check the Git status of multiple projects

https://github.com/uralys/check-projects
43•chrisdugne•6d ago•26 comments

How Slide Rules Work

https://amenzwa.github.io/stem/ComputingHistory/HowSlideRulesWork/
135•ColinWright•16h ago•33 comments