improved a spec
added prime generation