Chakravala method - Other languages