Works slightly better with other numbers, not perfect