Implement "factors" fn