answer is 6857. used the prime library, because why the hell not