Reformatted {} and fixed a bug

Reformatted the usage of {} and fixed the bug that didn't include 2 in the list of printed prime numbers. Added white spaces for readability in previous commits.