Class Factorize

java.lang.Object
  |
  +--Factorize

class Factorize
extends java.lang.Object

Factorization of MyIntegralNumbers.


Method Summary
static void getFactor(MyIntegralNumber ival)
          Prints "Prime" on the terminal if ival is prime; otherwise, prints a non-trivial factor of ival.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFactor

public static void getFactor(MyIntegralNumber ival)
Prints "Prime" on the terminal if ival is prime; otherwise, prints a non-trivial factor of ival.

[ival is assumed to be odd and greater than 100.]

Parameters:
ival - the integer to be factored