Coding Interview Algorithm: Find the sum of Prime Numbers [Python]

preview_player
Показать описание
In this video we will show you how to write the algorithm code for an interview question about finding the sum of prime numbers numbers in Python.

#array #codinginterview #python #primenumbers
Рекомендации по теме
Комментарии
Автор

or you can use linear sieve, it's more efficient

shivamsiddharthasinghrajaw
Автор

1 is neither prime nor composite, also for n = 10, sum = 17 (= 2+3+5+7)

bubblebath