Post Reply 
ifactors Test Problem
09-06-2017, 10:12 PM
Post: #7
RE: ifactors Test Problem
(09-06-2017 07:10 PM)Tim Wessman Wrote:  
(09-06-2017 07:03 PM)toml_12953 Wrote:  If the length of the ifactors vector returns 2 then there are only two factors, the number itself and 1. That means it's prime.

Are you doing this as a learning exercise? (I'll leave alone the issue with this method to figure prime for someone else)

The is already a function specifically for primes. Quite many in fact under the toolbox->CAS->Integer->Prime menu.

Yes, I was just trying to come up with a function that didn't use the one from the menu. Thanks to all who answered my question!

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
ifactors Test Problem - toml_12953 - 09-06-2017, 02:18 PM
RE: ifactors Test Problem - Helge Gabert - 09-06-2017, 05:16 PM
RE: ifactors Test Problem - toml_12953 - 09-06-2017, 07:03 PM
RE: ifactors Test Problem - Tim Wessman - 09-06-2017, 07:10 PM
RE: ifactors Test Problem - toml_12953 - 09-06-2017 10:12 PM
RE: ifactors Test Problem - Helge Gabert - 09-06-2017, 08:13 PM
RE: ifactors Test Problem - Helge Gabert - 09-07-2017, 04:45 PM



User(s) browsing this thread: 1 Guest(s)