Gentoo Archives: gentoo-dev

From: Michael Orlitzky <mjo@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH] qmail.eclass: simplify is_prime()
Date: Fri, 18 Jun 2021 19:10:19
Message-Id: YMzvo1/byrBArW5q@stitch
In Reply to: Re: [gentoo-dev] [PATCH] qmail.eclass: simplify is_prime() by Ulrich Mueller
1 >
2 > This depends on the actual domain of numbers. If the primes involved
3 > have 20 digits as in your example, then factor should be used of course.
4 >
5 > I suspect though that we're talking about small numbers (below 100?)
6 > here, in which case a solution in pure bash would be preferable.
7 >
8
9 If so, we could just list them all.

Replies

Subject Author
Re: [gentoo-dev] [PATCH] qmail.eclass: simplify is_prime() Rolf Eike Beer <eike@×××××××.de>