Changes in prime calculation