# iterPrimesSeq
> Create an iterator which generates a sequence of [prime numbers][oeis-a000040].
## Usage
```javascript
var iterPrimesSeq = require( '@stdlib/math/iter/sequences/primes' );
```
#### iterPrimesSeq( \[options] )
Returns an iterator which generates a sequence of prime numbers.
```javascript
var it = iterPrimesSeq();
// returns
## Notes
- If an environment supports `Symbol.iterator`, the returned iterator is iterable.
## Examples
```javascript
var iterPrimesSeq = require( '@stdlib/math/iter/sequences/primes' );
// Create an iterator:
var opts = {
'iter': 100
};
var it = iterPrimesSeq( opts );
// Perform manual iteration...
var v;
while ( true ) {
v = it.next();
if ( v.done ) {
break;
}
console.log( v.value );
}
```
[oeis-a000040]: https://oeis.org/A000040