add solution 27

1. solution 27
2. add function IsPrime