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 listMay 5, 2024 15:37Ivan BessonovIvan BessonovScore: 48,435Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 5, 2024 15:3744,37696,909,14539,051,23602,269,184
2May 5, 2024 15:3744,50696,103,42239,165,54602,256,896
3May 5, 2024 15:3744,524107,314,40839,180,96002,256,896
4May 5, 2024 15:3748,26761,482,16641,464,0001,011,0002,273,280
5May 5, 2024 15:3748,28175,306,39241,476,0001,011,0002,273,280
6May 5, 2024 15:3748,38465,619,01642,578,00002,273,280
7May 5, 2024 15:3748,43564,363,31341,609,0001,014,0002,527,232
8May 5, 2024 15:3748,49966,752,71941,663,0001,016,0002,371,584
9May 5, 2024 15:3748,50375,070,13242,683,00002,269,184
10May 5, 2024 15:3748,55367,416,05141,710,0001,017,0002,289,664
11May 5, 2024 15:3748,67769,009,07840,844,0001,992,0002,269,184
12May 5, 2024 15:3748,73168,705,75741,886,000997,0002,289,664