Suppose the common difference is not a multiple of a prime p, with p<=7. Then p will divide one of the terms of the series. If the first term of the series is p, then if p<=5, the (p+1)th term will also be divisible by p and be not equal to p, and hence composite. Thus, 2,3 and 5 all divide the common difference. Further, either the first term is 7, or 7 divides the common difference. In the latter case, we have a difference being a multiple of 210, so the highest term is at least 6*210 > 1200
Otherwise, we take first term 7, and difference a multiple of 2,3 and 5, so of 30.
If d=30, we get 187 is composite.
If d=60 187 again
d=90 187 again
d=120 , 247 is divisible by 13
d=150 gives us an ok sequence and we're there. Answer: 907