I'm trying to write a code to test the following properties of a composite number $n$. To be more specific, for a given $n$ from (say) 200-300, I want to check if $n$ satisfies any of the following:
If $n$ has 3 or more odd prime factors
If $n=2^rp^{\alpha}$ where $r>2$
If $n=2^rp^{\alpha}q^{\beta}$ where $r>1$, or
If $n=2p^{\alpha}q^{\beta}$ where $p\equiv q\equiv 1\pmod{4}$
Where $p, q$ are odd prime numbers and $\alpha, \beta>1$.
I'm still pretty new to Maple, so any tips or pointers you can give would be much appreciated. I figure some kind of for loop would be best but I have no idea how I would do the conditional for those.
Below is a Maple procedure for checking the second case ($n=2^rp^{\alpha}$ where $r>2$)
Now, IFak(100) gives "FALSE" and IFak(24) gives "TRUE".
You may write something like and for next cases.