What is the difference between GDP at market price and GDP at factor cost?

What is the difference between GDP at market price and GDP at factor cost? Gross domestic product (GDP) is the aggregate value of-all find goods and services produced within the domestic territory of a country during a year.