Question 6
Combinatorics · Number theory BDMO 2022 Regional
A building named "Vagavagi" has 10 rooms on the ground floor. The rooms are labeled as consecutively. Members of prime numbered rooms don't have good relations with the members of composite numbered rooms. But members of prime numbered rooms have good relations with other members of prime numbered rooms and members of composite numbered rooms have good relations with other members of composite numbered rooms. Good relation between two rooms will count as one good relation. Find how many good relations there are in that building?