Prime chord diagrams generator