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 09:39Dan StolyarovDan StolyarovScore: 304,469Success
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 09:39303,555294,867,733263,127,0004,001,0002,494,464
2Nov 13, 2024 09:39304,108300,404,075264,620,0002,995,0002,281,472
3Nov 13, 2024 09:39304,256296,196,245263,749,0003,996,0002,404,352
4Nov 13, 2024 09:39304,352295,293,783263,833,0003,997,0002,347,008
5Nov 13, 2024 09:39304,469295,047,465263,934,0003,999,0002,289,664
6Nov 13, 2024 09:39304,780297,479,553264,203,0004,003,0002,457,600
7Nov 13, 2024 09:39304,882293,765,031264,292,0004,004,0002,281,472
8Nov 13, 2024 09:39305,172295,637,254265,545,0003,006,0002,465,792
9Nov 13, 2024 09:39306,744293,022,760265,936,0003,999,0002,281,472