How to resolve the algorithm Anti-primes step by step in the Phix programming language

Published on 12 May 2024 09:40 PM

How to resolve the algorithm Anti-primes step by step in the Phix programming language

Table of Contents

Problem Statement

The anti-primes (or highly composite numbers, sequence A002182 in the OEIS) are the natural numbers with more factors than any smaller than itself.

Generate and show here, the first twenty anti-primes.

Let's start with the solution: