add print prime numbers (using boolean vector as indicator)