Primary memory: A temporary memory that is directly accessible to CPU and of both types volatile and non-volatile. E.g. RAM, ROM, Cache memory, PROM, EPROM, Registers, etc
Secondary memory: A permanent memory that is not directly accessible by CPU and is non-volatile in nature. E.g. Hard Disk, Floppy Disk, Magnetic Tapes, etc