first primstav commit
Merge https://github.com/asathoor/primstav