Maximum no. of contiguous Prime Numbers in an array
Given an array arr[] of N elements. The task is to find the maximum number of the contiguous prime numbers in the given array. Examples: Input: arr[] = {3, 5, 2, 66, 7, 11, 8} Output: 3 Maximum contiguous prime number sequence is {2, 3, 5} Input: arr[] = {1, 0, 2, 11, 32, 8, 9} Output: 2 Maximum con