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 9, 2024 02:28zielajzielajScore: 26,347Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 9, 2024 02:2826,20548,247,14422,058,0001,002,0002,359,296
2Dec 9, 2024 02:2826,31443,980,70221,143,0002,013,0002,531,328
3Dec 9, 2024 02:2826,32248,897,61822,156,0001,007,0002,269,184
4Dec 9, 2024 02:2826,33554,389,69822,168,0001,007,0002,269,184
5Dec 9, 2024 02:2826,34746,235,91322,177,0001,008,0002,359,296
6Dec 9, 2024 02:2826,41550,855,85922,235,0001,010,0002,363,392
7Dec 9, 2024 02:2826,45046,849,16422,264,0001,012,0002,269,184
8Dec 9, 2024 02:2826,46743,486,93322,279,0001,012,0002,269,184
9Dec 9, 2024 02:2826,49145,757,64122,299,0001,013,0002,531,328