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=2.6 required=5.0 tests=BAYES_20,INVALID_DATE, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,79150553885a5ca0,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-11-25 14:36:44 PST Newsgroups: comp.lang.ada From: Ian@wilks.demon.co.uk (Ian M Wilks) Path: nntp.gmd.de!xlink.net!howland.reston.ans.net!news.sprintlink.net!demon!wilks.demon.co.uk!Ian Subject: Help Wanted Organization: Myorganisation Reply-To: Ian@wilks.demon.co.uk X-Newsreader: Demon Internet Simple News v1.29 Date: Fri, 25 Nov 1994 13:39:23 +0000 Message-ID: <785770763snz@wilks.demon.co.uk> Sender: usenet@demon.co.uk Date: 1994-11-25T13:39:23+00:00 List-Id: Help, can you help please? As an assignment I have to learn enough Ada and write the following parallel program: Find the prime numbers in the first 100 numbers (1, 2, 3, ... , 99, 100) using the Sieve of Eratosthenes. Write down all numbers from 2 to 100. The first number in the list (2) is a prime. Strike off all multiples of 2. On the remaining list the next number (3) is a prime. Strike off all multiples of 3, and so on. Task 1 - Produces numbers from 2 to 100 Task 2 - outputs the first number it gets, deletes multiples of 2 from the list and passes the remaining list to Task 3. Task 3 - outputs the first number it gets, deletes multiples of 3 from the list and passes the remaining list to Task 4. Task n - outputs the first number it gets, deletes all multiples of the first number and passes the remaining list to the next task. Can anyone let me have any code similar to this that I can adapt. Unfortunately I'm running out of time!!! Thanks.