check-factors is a program to check the results from srsieve, sr1sieve,
sr2sieve gcwiseve.

  check-factors < factors.txt

will print all good factors to stdout, and all bad lines to stderr with an
error message prepended. Blank lines are ignored.

A bad line is one of these:

1. The line cannot be parsed in the form p | k*b^n+c or p | b^n+c
2. The factor p is not in the range 1 < p < 2^62
3. The factor p does not divide k*b^n+c

You can use redirection to record the good and bad like this:

  check-factors < INFILE > GOOD-FACTORS 2> BAD-LINES
