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 listDec 8, 2024 21:03zielajzielajScore: 50,156Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 8, 2024 21:0350,00867,602,10343,007,0001,000,0002,269,184
2Dec 8, 2024 21:0350,03666,363,86642,031,0002,001,0002,424,832
3Dec 8, 2024 21:0350,03867,375,10542,032,0002,001,0002,510,848
4Dec 8, 2024 21:0350,05767,181,42543,049,0001,001,0002,531,328
5Dec 8, 2024 21:0350,15669,665,14543,134,0001,003,0002,428,928
6Dec 8, 2024 21:0350,19067,300,70943,164,0001,003,0002,531,328
7Dec 8, 2024 21:0350,20765,095,79842,174,0002,008,0002,531,328
8Dec 8, 2024 21:0350,22374,190,82443,192,0001,004,0002,269,184
9Dec 8, 2024 21:0350,46364,867,04644,407,00002,531,328