Simple AngularJS generating prime numbers using Eratosthenes sieve