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 15, 2024 19:22zielajzielajScore: 5,759Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 15, 2024 19:225,68024,472,2392,999,0001,999,0002,269,184
2Dec 15, 2024 19:225,69718,897,0613,008,0002,005,0002,506,752
3Dec 15, 2024 19:225,74827,016,2533,035,0002,023,0002,269,184
4Dec 15, 2024 19:225,75819,626,8734,054,0001,013,0002,531,328
5Dec 15, 2024 19:225,75919,522,5904,055,0001,013,0002,531,328
6Dec 15, 2024 19:225,77424,446,1864,065,0001,016,0002,506,752
7Dec 15, 2024 19:225,78624,357,1263,055,0002,037,0002,531,328
8Dec 15, 2024 19:225,79719,413,4563,061,0002,040,0002,531,328
9Dec 15, 2024 19:225,86027,419,2994,126,0001,031,0002,506,752