As you have mentioned , that particular loop runs 652 times for each function call.. to be exact..the loop is carried out 163*163*653 times totally. if i want to reduce this constrain, could i go for the case statement where i can assign the values at first itself instead of running the loop for generating the j(n) values??
secondly, i have made corrections to match the integer size and the array size by changing the size of array to 32.
now also my code is stuck..its running for more than one hour without crossing the 2 % of full compilation.
could there be any other prob?