From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,24ac4e1c8cbfe3c X-Google-Attributes: gid103376,public From: "Robert I. Eachus" Subject: Re: histrionics Date: 1999/09/22 Message-ID: <37E91976.81773CB8@mitre.org>#1/1 X-Deja-AN: 528317480 Content-Transfer-Encoding: 7bit References: <37D670CE.855F96BD@interact.net.au> <37D678E4.9867000B@interact.net.au> <37d74de9@eeyore.callnetuk.com> <7r8c60$b2q$1@nnrp1.deja.com> <7r9rkj$g75$1@nnrp1.deja.com> <7rcddd$bfd$1@nnrp1.deja.com> <37DECE9D.72D1E87E@mitre.org> <7s2l7b$kmr$1@nnrp1.deja.com> <37E81661.6DCA23E4@mitre.org> <7saju5$6h6$1@nnrp1.deja.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@news.mitre.org X-Trace: top.mitre.org 938023006 4421 129.83.41.77 (22 Sep 1999 17:56:46 GMT) Organization: The MITRE Corporation Mime-Version: 1.0 NNTP-Posting-Date: 22 Sep 1999 17:56:46 GMT Newsgroups: comp.lang.ada Date: 1999-09-22T17:56:46+00:00 List-Id: Robert Dewar wrote: > primes := {x in 2 .. N | > not exists y,z in 2 .. x-1 | x = y*z} Just as compact as APL, although I notice you optimized by using a range of 2..x-1 instead of 2..x or 1..x-1. How does Wilson's Theorem look in SETL? Note that I am not knocking SETL, I just happen to use APL when working on certain types of problems. An appropriate higher level language can a great tool for designing and documenting algorithms, and SETL and APL overlap domains. SETL is much better for set theory, and APL for numerical methods. In either case, detailed efficiency is secondary while getting the algorithm right. For example, when using PROLOG as a design language, you usually want to forget about cut points. -- Robert I. Eachus with Standard_Disclaimer; use Standard_Disclaimer; function Message (Text: in Clever_Ideas) return Better_Ideas is...