The number of people required for al-jumu'ah (Friday prayer): There is no dispute among the scholars that a congregation is a necessary condition for the validity of al-jumu'ah (Friday prayer). This is based on the hadith of Tariq ibn shihab who reports that the prophet said: "Al-jumu'ah (Friday prayer) is an obligation upon every Muslim in the community."
However, the scholars do differ on how many people are required for al-jumu'ah (Friday prayer). There are fifteen different opinions on this question and they are mentioned by Imam Ibn Hajar in his book "Fath Al-bari" The strongest opinion is that salatul Jumu'ah (Friday prayer) is valid if there are two or more people present since the Prophet is reported to have said: "Two or more constitute a congregation."
Imam Ash-Shaukani says: "The other prayers are considered to be made in congregation if there are two people present. The same applies to jumu'ah salah (Friday prayer), unless there is a reason for it to be different. There is no evidence for show that (for the purpose of the congregation) its number should be larger than that for the other prayers. ' Abudul Haqq says: 'There is no confirmed hadith on the number of people needed for al-jumu'ah (Friday prayer). Similarly, Imam As-Sayuti holds: 'There is no confirmed hadith which states a particular number (for the jumu'ah salah (Friday prayer)).' "This is also the opinion of Imams At-Tabari, Dawud, an-Nakha'I, and Ibn hazm.
salatul Jumu'ah (Friday prayer) is wājib. But a kind of wājib that you can choose to do or to do the alternative (which in this case is dhuhr salah). But this is true as long as there are people to go and pray the salatul Jumu'ah. If there's not enough people, it's wājib to go.
for more information about salatul Jumu'ah, please read the following links: