apply new lib. remove scanner
add a solution for bfs, primality test