The sum to n terms of an arithmetic series A is Sn. The sum of the first four terms of A is 42 and the fifth term of A is 23. Show
n
that Sn = ∑ r=1 (Pr-Q) where P and Q are prime numbers. ​