There's probably a better way to do this, but this is my suggestion: :If (d/x) == int(d/x) :Then ;x is a factor also, if x=1, then it will ALWAYS be a factor. -Joseph Have A :-) Nice Day