using java 8 streams to find prime numbers