Prime number from 1 to n

how to make this pseudocode