On a Result of Hardy and Ramanujan