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:12Dan StolyarovDan StolyarovScore: 7,950,948Success
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:127,859,8106,949,645,8226,914,634,0001,999,0002,281,472
2Nov 6, 2024 18:127,894,7116,972,944,7536,943,348,0003,998,0002,387,968
3Nov 6, 2024 18:127,913,3406,999,719,2566,959,741,0003,998,0002,277,376
4Nov 6, 2024 18:127,942,5307,015,985,5766,986,428,0002,998,0002,281,472
5Nov 6, 2024 18:127,950,9487,030,840,5826,992,836,0003,998,0002,289,664
6Nov 6, 2024 18:127,952,7697,028,982,0566,995,439,0002,998,0002,441,216
7Nov 6, 2024 18:127,952,9027,032,028,7646,996,555,0001,999,0002,293,760
8Nov 6, 2024 18:127,953,6917,033,078,5056,996,250,0002,998,0002,281,472
9Nov 6, 2024 18:127,963,9287,035,984,8777,004,259,0003,998,0002,281,472