Function to return the length of the largest sub - array of an array every element of whose is a perfect number
static int contiguousPerfectNumber ( int [ ] arr , int n ) { int current_length = 0 ; int max_length = 0 ; int i ; for ( i = 0 ; i < n ; i ++ ) {