In the inherited form of melanoma, the primary genes involved are CDKN2A and MC1R. Here, CDKN2A is linked to melanoma.