Prime algorithm added