Ruby Prime number Sum : num = 1
 
last = 100


while (num <= last)

  condition = true

  x = 2

  while (x <= num / 2)

    if (num % x == 0)

      condition = false

      break

    end 

    x = x + 1  

  end

  if condition     

    puts num.to_s
    
  end

  num = num + 1
end

I am trying to make a sum of the first prime numbers. I found a way of showing the first 100, but I don't know how to get rid of 1 and how to make a sum with the numbers. I was thinking about storing them into an array, but I can not figure it out how. Thank you!
