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 26, 2024 13:42zielajzielajScore: 4,007Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 26, 2024 13:423,93522,792,3152,309,0001,154,0002,273,280
2Dec 26, 2024 13:423,95823,935,0973,483,00002,457,600
3Dec 26, 2024 13:423,95818,956,8412,322,0001,161,0002,461,696
4Dec 26, 2024 13:423,97817,351,3992,334,0001,167,0002,461,696
5Dec 26, 2024 13:424,00721,265,8112,351,0001,175,0002,453,504
6Dec 26, 2024 13:424,01319,427,4312,354,0001,177,0002,535,424
7Dec 26, 2024 13:424,01422,264,2332,355,0001,177,0002,535,424
8Dec 26, 2024 13:424,02322,061,3672,360,0001,180,0002,535,424
9Dec 26, 2024 13:424,04818,065,3293,562,00002,461,696