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 13, 2024 21:32zielajzielajScore: 7,306Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 13, 2024 21:307,27527,030,9386,402,00002,506,752
2Dec 13, 2024 21:327,27526,642,6356,402,00002,519,040
3Dec 13, 2024 21:307,27622,262,8546,403,00002,269,184
4Dec 13, 2024 21:307,27822,324,9486,405,00002,531,328
5Dec 13, 2024 21:307,29022,593,2316,415,00002,531,328
6Dec 13, 2024 21:307,30122,870,8346,425,00002,510,848
7Dec 13, 2024 21:327,30623,227,3186,429,00002,531,328
8Dec 13, 2024 21:307,30825,121,6506,431,00002,269,184
9Dec 13, 2024 21:327,32223,642,6656,443,00002,531,328
10Dec 13, 2024 21:307,34420,821,0716,463,00002,269,184
11Dec 13, 2024 21:307,34824,585,3845,389,0001,077,0002,531,328
12Dec 13, 2024 21:307,35821,942,0016,475,00002,269,184