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:01Robert BurkeRobert BurkeScore: 37,393Success
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:0137,05358,630,63132,607,00002,453,504
2Jul 31, 2022 15:0137,09553,039,75131,624,0001,020,0002,445,312
3Jul 31, 2022 15:0137,13961,645,72332,682,00002,453,504
4Jul 31, 2022 15:0137,18463,426,36031,700,0001,022,0002,445,312
5Jul 31, 2022 15:0137,18657,867,51332,724,00002,535,424
6Jul 31, 2022 15:0137,20559,033,30530,694,0002,046,0002,281,472
7Jul 31, 2022 15:0137,39358,641,34031,909,000997,0002,273,280
8Jul 31, 2022 15:0137,48157,802,10130,984,0001,999,0002,273,280
9Jul 31, 2022 15:0137,50752,803,21331,006,0002,000,0002,273,280
10Jul 31, 2022 15:0138,512105,261,17833,890,32902,285,568
11Jul 31, 2022 15:0138,56689,183,29733,937,73102,285,568
12Jul 31, 2022 15:0138,94996,077,45734,274,89502,285,568