Write an user defined function to print all the prime numbers within a range. The function takes two input arguments, i.e. the lower boundary of the range and the upper boundary of the range, and it has no output argument. The function will store all the prime numbers within the ranged in an array of type global variable.