#include int f(int x) { int p, q = x; int r = 0; for(p=2;p