public void map(LongWritable key, Text value, Context context)
                throws IOException, InterruptedException {
            Integer number = new Integer(value.toString());
            if (number == 0)
                return;
            else if (number == 1)
                return;
            else if (number == 2) {
                context.write(new Text("prime"), new IntWritable(number));
                return;
            }
            for (int i = 2; i <= Math.sqrt(number); i++) {
                if (number % i == 0)
                    return;
            }
            context.write(new Text("prime"), new IntWritable(number));
        }