Correct option is D
Given - A, B, C, D, E and F live on six different floors of the same building. The lowermost floor in the building is numbered 1, the floor above it, number 2 and so on till the topmost floor is numbered 6.
A lives on a floor which is a prime number. The product of floors on which A and E live is 3. Only 2 people live above B. F lives immediately below C.

Two people between D and F.
Option D is correct.