How to create multiples of number in list?

Dear all, I’m trying to create a numbers in list, I wanna make a multiples of number. For example, numbers in list is {1, 2, 4, 8, 16, …} or prime numbers as 1, 2, 3, 5, 7, … . Please help me. Thank you.

For the prime numbers, you should break the loop after setting isPrime = False, otherwise that might take a while for larger value ranges.