Fix primarity function
Add problem 007