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 listJul 31, 2022 15:55Robert BurkeRobert BurkeScore: 36,325Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 31, 2022 15:5535,79852,378,20531,502,00002,510,848
2Jul 31, 2022 15:5535,81348,846,91430,499,0001,016,0002,273,280
3Jul 31, 2022 15:5535,95952,822,88731,644,00002,514,944
4Jul 31, 2022 15:5536,00758,705,74930,664,0001,022,0002,514,944
5Jul 31, 2022 15:5536,25564,603,83728,913,0002,991,0002,502,656
6Jul 31, 2022 15:5536,26854,418,61329,922,0001,994,0002,428,928
7Jul 31, 2022 15:5536,32559,408,92529,969,0001,997,0002,342,912
8Jul 31, 2022 15:5536,59558,446,85030,192,0002,012,0002,273,280
9Jul 31, 2022 15:5536,64888,755,12832,250,10902,211,840
10Jul 31, 2022 15:5536,69453,814,48130,273,0002,018,0002,510,848
11Jul 31, 2022 15:5537,026104,776,49932,583,02902,224,128
12Jul 31, 2022 15:5537,29793,116,62632,820,97702,211,840