Writing composite numbers in Index form