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 28, 2024 16:28zielajzielajScore: 3,806Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2024 16:283,75120,803,5572,201,0001,100,0002,453,504
2Dec 28, 2024 16:283,75321,449,2823,303,00002,457,600
3Dec 28, 2024 16:283,77217,183,1272,213,0001,106,0002,535,424
4Dec 28, 2024 16:283,79819,625,7112,228,0001,114,0002,453,504
5Dec 28, 2024 16:283,80622,281,0272,233,0001,116,0002,465,792
6Dec 28, 2024 16:283,80720,843,6973,350,00002,461,696
7Dec 28, 2024 16:283,80820,883,7542,234,0001,117,0002,449,408
8Dec 28, 2024 16:283,81521,031,3722,238,0001,119,0002,453,504
9Dec 28, 2024 16:283,86320,729,7613,399,00002,461,696