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 6, 2024 18:19Dan StolyarovDan StolyarovScore: 3,411,247Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 6, 2024 18:193,384,3023,006,802,0272,974,189,0003,997,0002,281,472
2Nov 6, 2024 18:193,397,9143,018,973,0892,987,165,0002,999,0002,285,568
3Nov 6, 2024 18:193,406,0893,026,183,7202,994,359,0002,999,0002,281,472
4Nov 6, 2024 18:193,407,4803,025,735,5782,995,584,0002,998,0002,289,664
5Nov 6, 2024 18:193,411,2473,025,464,8792,997,899,0003,998,0002,281,472
6Nov 6, 2024 18:193,411,3303,027,851,7962,997,972,0003,998,0002,281,472
7Nov 6, 2024 18:193,412,6863,033,307,7723,000,166,0002,998,0002,449,408
8Nov 6, 2024 18:193,414,3243,032,608,6473,000,607,0003,998,0002,281,472
9Nov 6, 2024 18:193,442,3443,052,305,1823,025,264,0003,999,0002,281,472