C # program to find nearest prime number in the array for all array elements
using System ; using System . Linq ; using System . Collections . Generic ; class GFG { static readonly int max = 10000000 ;