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 18:13zielajzielajScore: 9,726Success
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 18:139,69021,533,6138,527,00002,531,328
2Dec 12, 2024 03:309,69324,416,0108,530,00002,531,328
3Dec 12, 2024 03:309,69326,710,7538,530,00002,334,720
4Dec 12, 2024 03:309,69325,950,7468,530,00002,531,328
5Dec 12, 2024 03:309,69526,598,2378,532,00002,330,624
6Dec 12, 2024 03:309,71627,942,3648,550,00002,531,328
7Dec 12, 2024 03:309,72624,584,6408,559,00002,330,624
8Dec 12, 2024 03:309,72626,022,3248,559,00002,330,624
9Dec 12, 2024 18:139,73826,244,3647,498,0001,071,0002,334,720
10Dec 12, 2024 03:309,88229,413,3997,609,0001,087,0002,334,720
11Dec 12, 2024 18:139,88327,683,2508,697,00002,322,432
12Dec 12, 2024 03:309,90727,932,8347,629,0001,089,0002,330,624