International audience Aims: We studied the abundance of HCN, H13CN, and HN13C in a sample of prestellar cores, in order to search for species associated with high density gas. Methods: We used the IRAM 30 m radiotelescope to observe along the major and the minor axes of L1498, L1521E, and TMC 2, three cores chosen on the basis of their CO depletion properties. We mapped the J = 1 --> 0 transition of HCN, H13CN, and HN13C towards the source sample plus the J = 1 --> 0 transition of N2H+ and the J = 2 --> 1 transition of C18O in TMC 2. We used two different radiative transfer codes, making use of recent collisional rate calculations, in order to determine more accurately the excitation temperature, leading to a more exact evaluation of the ...