better code structure for prime generation