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 listMay 16, 2024 20:55Ivan BessonovIvan BessonovScore: 32,166Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2024 20:5531,98654,183,04726,138,0002,010,0002,269,184
2May 16, 2024 20:5532,00153,318,34826,150,0002,011,0002,269,184
3May 16, 2024 20:5532,06151,441,00626,199,0002,015,0002,289,664
4May 16, 2024 20:5532,08551,283,41926,219,0002,016,0002,523,136
5May 16, 2024 20:5532,10648,344,84626,235,0002,018,0002,273,280
6May 16, 2024 20:5532,14051,120,69926,263,0002,020,0002,289,664
7May 16, 2024 20:5532,16651,983,92227,296,0001,010,0002,269,184
8May 16, 2024 20:5532,26156,901,97527,377,0001,013,0002,359,296
9May 16, 2024 20:5532,34553,284,94827,448,0001,016,0002,289,664
10May 16, 2024 20:5534,69791,877,08030,533,49302,252,800
11May 16, 2024 20:5534,75186,420,93430,580,77402,256,896
12May 16, 2024 20:5534,81192,338,45430,633,92402,256,896