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 18, 2024 10:17Ivan BessonovIvan BessonovScore: 27,532Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2024 10:1723,63899,701,70520,801,35302,256,896
2May 18, 2024 10:1723,69770,884,11120,853,64302,252,800
3May 18, 2024 10:1723,75088,487,15620,899,62202,256,896
4May 18, 2024 10:1727,44351,102,98022,138,0002,012,0002,289,664
5May 18, 2024 10:1727,52451,989,42622,203,0002,018,0002,269,184
6May 18, 2024 10:1727,53245,788,18223,219,0001,009,0002,289,664
7May 18, 2024 10:1727,53246,239,10023,219,0001,009,0002,273,280
8May 18, 2024 10:1727,53947,264,12522,215,0002,019,0002,379,776
9May 18, 2024 10:1727,58850,739,22022,254,0002,023,0002,273,280
10May 18, 2024 10:1727,63952,533,32023,309,0001,013,0002,289,664
11May 18, 2024 10:1727,72648,207,92923,383,0001,016,0002,289,664
12May 18, 2024 10:1727,78247,621,55923,430,0001,018,0002,269,184