Re: Convert long number to string
Re: Convert long number to string
- Subject: Re: Convert long number to string
- From: Martin Orpen <email@hidden>
- Date: Sat, 17 Apr 2004 18:08:37 +0100
on 17/4/04 5:52 pm, Martin Orpen at email@hidden wrote:
>
if (myInteger mod theFactor) = 0 then
>
set y to 2
>
end if
>
end repeat
>
if y is not 2 then
>
display dialog (myInteger as string) & " is a prime number." & "
>
(Fermat test tenths: " & (myCheck as string) & ")"
>
else
Whoops, made a mistake with my Carmichael Numbers :-(
The line:
if y is not 2 then
Should read:
if y is 2 then
Regards
--
Martin Orpen
Idea Digital Imaging Ltd -- The Image Specialists
http://www.idea-digital.com
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.