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 16, 2024 17:28Ivan BessonovIvan BessonovScore: 31,964Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2024 17:2831,85357,025,47426,029,0002,002,0002,289,664
2May 16, 2024 17:2831,86455,171,60126,038,0002,002,0002,289,664
3May 16, 2024 17:2831,86648,535,04327,041,0001,001,0002,277,376
4May 16, 2024 17:2831,86748,604,50426,040,0002,003,0002,269,184
5May 16, 2024 17:2831,90152,291,92526,068,0002,005,0002,289,664
6May 16, 2024 17:2831,93656,307,78527,101,0001,003,0002,281,472
7May 16, 2024 17:2831,96451,609,57227,124,0001,004,0002,273,280
8May 16, 2024 17:2831,97685,475,70428,139,31602,260,992
9May 16, 2024 17:2831,99950,662,63526,148,0002,011,0002,289,664
10May 16, 2024 17:2832,02598,996,20228,182,32502,260,992
11May 16, 2024 17:2832,03254,121,08626,175,0002,013,0002,289,664
12May 16, 2024 17:2832,08189,798,03828,230,96102,256,896