Deloitte Interview Question

Write in pseudo-code an algorithm to detect a prime number. Build a data model for a CD store.