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 listFeb 20, 2024 03:54Huy Duc LeHuy Duc LeScore: 29,756Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 20, 2024 03:5429,65053,037,88124,085,0002,007,0002,289,664
2Feb 20, 2024 03:5429,67250,167,07924,103,0002,008,0002,494,464
3Feb 20, 2024 03:5429,69753,314,39224,123,0002,010,0002,289,664
4Feb 20, 2024 03:5429,72051,463,11625,149,0001,005,0002,289,664
5Feb 20, 2024 03:5429,72496,810,25726,157,20602,220,032
6Feb 20, 2024 03:5429,75051,280,04025,174,0001,006,0002,289,664
7Feb 20, 2024 03:5429,75656,772,38624,171,0002,014,0002,289,664
8Feb 20, 2024 03:5429,77291,840,03326,199,44002,228,224
9Feb 20, 2024 03:5429,78947,002,70925,206,0001,008,0002,289,664
10Feb 20, 2024 03:5429,79698,776,81026,220,56102,215,936
11Feb 20, 2024 03:5429,83652,116,59924,237,0002,019,0002,289,664
12Feb 20, 2024 03:5430,09253,354,41225,463,0001,018,0002,289,664