Sum of prime numbers Andrey Tsvetkov

Compute the sum of all prime numbers in a stream of binary integers as fast as possible.

Input: 1 000 000 uint32 values in little-endian binary on STDIN (4 bytes each).

Output: The uint64 sum of all values that are prime, printed as a decimal string.

Back to listDec 12, 2024 01:30zielajzielajScore: 15,653Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 12, 2024 01:3015,52628,116,68713,663,00002,351,104
2Dec 12, 2024 01:3015,63236,992,95313,756,00002,449,408
3Dec 12, 2024 01:3015,64728,848,87013,769,00002,338,816
4Dec 12, 2024 01:3015,65328,852,51313,775,00002,338,816
5Dec 12, 2024 01:3015,65328,760,82613,775,00002,347,008
6Dec 12, 2024 01:3015,80936,703,20613,912,00002,347,008
7Dec 12, 2024 01:3015,81535,307,10412,923,000994,0002,269,184
8Dec 12, 2024 01:3015,82429,374,56612,931,000994,0002,449,408
9Dec 12, 2024 01:3016,75033,590,74714,740,00002,531,328