Convolution
时间限制:C/C++/Rust/Pascal 3秒,其他语言6秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld

题目描述

Bob invented a new operation

Let p_i denote the i-th prime number. If and , then



Now Bob have a sequence , he wants to calculate sequence satisfies:



The answer may be very large, you only need to output:



XOR means bitwise exclusive OR

输入描述:

The first line has two integers .

The second line has integers .






输出描述:

Output the answer.
示例1

输入

复制
6 1
1 2 3 4 5 6

输出

复制
55