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 listNov 13, 2024 11:33Dan StolyarovDan StolyarovScore: 272,461Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 13, 2024 11:33271,161265,443,395235,615,0003,007,0002,330,624
2Nov 13, 2024 11:33271,388262,490,983235,824,0002,997,0002,301,952
3Nov 13, 2024 11:33271,765263,101,179235,151,0004,002,0002,289,664
4Nov 13, 2024 11:33272,093263,315,701236,437,0003,005,0002,289,664
5Nov 13, 2024 11:33272,461268,428,006235,770,0003,996,0002,281,472
6Nov 13, 2024 11:33272,723264,749,388235,997,0003,999,0002,465,792
7Nov 13, 2024 11:33272,865263,230,627236,119,0004,002,0002,289,664
8Nov 13, 2024 11:33272,907267,067,549236,156,0004,002,0002,469,888
9Nov 13, 2024 11:33273,165272,109,842237,381,0003,004,0002,461,696