Highlighted
alan_ruttle
Level II

Prime Numbers

Does anyone know if there is a way to search for prime numbers in JMP?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
ian_jmp
Staff

Re: Prime Numbers

Not that I know of, though I guess you could code something if you have the knowledge and know what you want.

 

Not sure it's worth it, though - See for example. You can download their software and 'win a cash prize' (?!) apparently . . .

View solution in original post

5 REPLIES 5
Highlighted
ian_jmp
Staff

Re: Prime Numbers

Not that I know of, though I guess you could code something if you have the knowledge and know what you want.

 

Not sure it's worth it, though - See for example. You can download their software and 'win a cash prize' (?!) apparently . . .

View solution in original post

Highlighted
alan_ruttle
Level II

Re: Prime Numbers

Thanks Ian,

I figured as much, I knew it was a long shot :) . I would be looking to find prime numbers within a fixed range and I know there are some algorithims out there I could use. 

Highlighted

Re: Prime Numbers

Hi Alan, 

 

 

Robert Anderson has found in the JMP 14 documentation a script for this:

https://www.jmp.com/support/help/14/create-an-interactive-program.shtml

 

The script only works for numbers up to 100, if you want to look for primes above that, you would have to modify the script.

 

Regards, 

Maria

Highlighted
ian_jmp
Staff

Re: Prime Numbers

Unfortunately that script assumes you already know the answer (since it contains a list of primes).

Highlighted
alan_ruttle
Level II

Re: Prime Numbers

Thanks Maria, I would be looking at up to 90 digits.
Article Labels

    There are no labels assigned to this post.