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 listOct 6, 2023 08:41Robert BurkeRobert BurkeScore: 18,607Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 6, 2023 08:4118,50240,867,81315,265,0001,017,0002,392,064
2Oct 6, 2023 08:4118,52242,507,11814,262,0002,037,0002,392,064
3Oct 6, 2023 08:4118,52836,206,52915,286,0001,019,0002,400,256
4Oct 6, 2023 08:4118,55837,484,44215,311,0001,020,0002,281,472
5Oct 6, 2023 08:4118,56933,959,20414,299,0002,042,0002,281,472
6Oct 6, 2023 08:4118,57331,886,31716,344,00002,392,064
7Oct 6, 2023 08:4118,60732,582,68715,351,0001,023,0002,469,888
8Oct 6, 2023 08:4118,68685,148,98216,443,29302,228,224
9Oct 6, 2023 08:4118,71344,260,32816,467,00002,387,968
10Oct 6, 2023 08:4118,72038,505,80015,445,0001,029,0002,449,408
11Oct 6, 2023 08:4118,72287,341,27916,475,44802,240,512
12Oct 6, 2023 08:4118,84575,704,82816,583,63502,232,320