Fixed issues with Thrust examples and remove bug from PPL prime number example