#include using namespace std; int isPrime(int n) { // Corner case if (n <= 1) return 0; // Check from 2 to n-1 for (int i=2; i> n; long a[n]; for(int i = 0; i < n; i++){ cin >> a[i]; } long result = longestSequence(a,n); cout << result << endl; return 0; }