first version: brute factorizer
added headers