added graphical part, for 10000 first numbers