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 listMar 16, 2025 15:31wainCGPwainCGPScore: 17,910Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 16, 2025 15:3517,81642,214,64914,633,0001,045,0002,392,064
2Mar 16, 2025 15:3117,89236,809,90514,696,0001,049,0002,289,664
3Mar 16, 2025 15:3517,89930,988,41315,751,00002,289,664
4Mar 16, 2025 14:5617,90540,175,66615,756,00002,289,664
5Mar 16, 2025 14:5617,91042,444,91115,761,00002,281,472
6Mar 16, 2025 15:3517,94139,230,42514,736,0001,052,0002,289,664
7Mar 16, 2025 15:3118,05132,818,95314,893,000992,0002,277,376
8Mar 16, 2025 14:5618,06541,668,04714,904,000993,0002,289,664
9Mar 16, 2025 15:3118,07331,557,97413,916,0001,988,0002,273,280