The SAGE command must be in your PATH.
Then the following should work for you.

$ ./factor.sage 9309823904
2^5 * 61 * 4769377
