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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4117034ae215d480 X-Google-Attributes: gid103376,public From: kilgallen@eisner.decus.org (Larry Kilgallen) Subject: Re: Prime number program? Date: 1999/12/04 Message-ID: <1999Dec4.145721.1@eisner>#1/1 X-Deja-AN: 556642616 References: <82bk0d$55b$1@saturn.bton.ac.uk> X-Trace: news.decus.org 944337459 25963 KILGALLEN [216.44.122.34] Organization: LJK Software Reply-To: Kilgallen@eisner.decus.org.nospam Newsgroups: comp.lang.ada Date: 1999-12-04T00:00:00+00:00 List-Id: In article <82bk0d$55b$1@saturn.bton.ac.uk>, "Oly" writes: > Please help! > > I have to build an Ada program which tells the user if the number which they > have entered is a prime number or not. > I am still a newbie at Ada (and crap at maths)..and have spent many wasted > and frustring hours trying to solve the problem. > > Please help! If you don't know the math regarding prime numbers, you cannot succeed on such an endeavor no matter what programming language you use. Thus, I think this is not really an Ada question, and something more appropriate to some math discussion forum. When you resolve your math question, any introductory Ada book should show you how basics like addition, subtraction, etc. work. Larry Kilgallen