Extreme primes: Difference between revisions
→{{header|Go}}: Some changes as a result of changes to Go-rcu package.
(→{{header|ALGOL 68}}: Simplify) |
(→{{header|Go}}: Some changes as a result of changes to Go-rcu package.) |
||
Line 173:
"rcu"
)
func nextPrime(n *big.Int) *big.Int {
Line 228 ⟶ 213:
if m < 6 || m == 30 || m == 40 || m == 50 {
scount := rcu.Commatize(count)
ssum :=
sp :=
fmt.Printf("The %6sth extreme prime is: %18s for p <= %10s\n", scount, ssum, sp)
if m == 50 {
|