Code we send for the first problem to parallel programming contest Intel Acceler8 (look at http://software.intel.com/en-us/articles/acceler8-solution-au-probl-me-des-smallbrain-numbers)