Primex coding challenge