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:21Dan StolyarovDan StolyarovScore: 3,407,041Success
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:213,379,0903,002,708,2742,969,601,0003,998,0002,285,568
2Nov 6, 2024 18:213,390,2653,006,732,5962,979,434,0003,999,0002,297,856
3Nov 6, 2024 18:213,393,5893,016,847,2892,982,361,0003,997,0002,297,856
4Nov 6, 2024 18:213,400,6183,020,928,4322,989,545,0002,999,0002,293,760
5Nov 6, 2024 18:213,407,0413,025,979,8092,995,197,0002,999,0002,285,568
6Nov 6, 2024 18:213,408,5813,034,554,0942,997,552,0001,999,0002,285,568
7Nov 6, 2024 18:213,411,5643,026,036,4962,998,176,0004,000,0002,285,568
8Nov 6, 2024 18:213,412,2983,032,092,3602,998,824,0003,998,0002,285,568
9Nov 6, 2024 18:213,417,3773,031,865,8023,005,293,0001,999,0002,285,568