Post Reply 
ifactors Test Problem
09-06-2017, 07:10 PM
Post: #5
RE: ifactors Test Problem
(09-06-2017 05:16 PM)Helge Gabert Wrote:  Try storing DIM(ifactors(X)) into a list, say L1, and then try

IF L1(1) == 2 THEN . . .

You can also use EQ to compare two lists :

IF EQ(DIM(ifactors(X)),{2}) THEN....

...but ifactors(8) returns [2 3]: factor 2, multiplicity 3, so it won't help you to identify prime numbers.
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 - Didier Lachieze - 09-06-2017 07:10 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)