Jump to content

Long primes: Difference between revisions

m
Line 515:
=={{header|Common Lisp}}==
{{trans|Raku}}
<lang lisp>; Primality testetest using the Sieve of Eratosthenes with a couple minor optimizations
<lang lisp>
; Primality teste using the Sieve of Eratosthenes with a couple minor optimizations
(defun primep (n)
(cond ((and (<= n 3) (> n 1)) t)
1,480

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.