Primary memory, also called main memory or volatile memory, is directly accessible to the CPU and includes RAM and ROM. RAM is temporary memory that loses its contents when power is lost, while ROM permanently stores essential programs and instructions. Secondary memory, also called external storage, includes hard drives and solid state drives and provides significantly more storage than primary memory but is not directly accessible by the CPU. Memory is classified and its functions are explained.