Function to print the prime numbers in the first half and second half of an array
function Print ( arr , n ) { document . write ( " " ) ; prime_range ( 0 , parseInt ( n / 2 ) , arr ) ; document . write ( " " ) ; document . write ( " " ) ; prime_range ( parseInt ( n / 2 ) , n , arr ) ; document . write ( " " ) ; }