• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Convert long number to string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Re: Convert long number to string (From: Martin Orpen <email@hidden>)

  • Prev by Date: Re: Convert long number to string
  • Next by Date: Re: Convert long number to string
  • Previous by thread: Re: Convert long number to string
  • Next by thread: Re: Convert long number to string
  • Index(es):
    • Date
    • Thread