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 listJan 18, 2025 06:55matsuoka-601matsuoka-601Score: 11,670Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 18, 2025 06:5511,49424,917,8008,092,0002,023,0002,465,792
2Jan 18, 2025 06:5511,55123,564,3357,116,0003,049,0002,465,792
3Jan 18, 2025 06:5511,61628,120,4559,200,0001,022,0002,465,792
4Jan 18, 2025 06:5511,62825,148,4039,210,0001,023,0002,289,664
5Jan 18, 2025 06:5511,67030,224,6919,243,0001,027,0002,465,792
6Jan 18, 2025 06:5511,70530,519,1258,240,0002,060,0002,461,696
7Jan 18, 2025 06:5511,73529,133,9589,295,0001,032,0002,461,696
8Jan 18, 2025 06:5511,73627,187,8869,296,0001,032,0002,465,792
9Jan 18, 2025 06:5511,84523,627,35310,424,00002,281,472