creates linked list with prime numbers
updated comments