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:27zielajzielajScore: 27,153Success
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:2726,90952,081,36423,680,00002,359,296
2Dec 9, 2024 02:2726,97651,990,95423,739,00002,355,200
3Dec 9, 2024 02:2726,98855,829,56223,749,00002,269,184
4Dec 9, 2024 02:2727,13047,011,32522,880,000994,0002,269,184
5Dec 9, 2024 02:2727,15350,524,63922,900,000995,0002,355,200
6Dec 9, 2024 02:2727,16446,891,28922,908,000996,0002,531,328
7Dec 9, 2024 02:2727,17548,346,72822,918,000996,0002,269,184
8Dec 9, 2024 02:2727,17653,345,25722,919,000996,0002,531,328
9Dec 9, 2024 02:2727,20249,526,94022,941,000997,0002,359,296