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:45Dan StolyarovDan StolyarovScore: 804,161Success
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:45800,423734,904,251701,371,0003,001,0002,281,472
2Nov 6, 2024 18:45800,652730,903,672701,576,0002,998,0002,494,464
3Nov 6, 2024 18:45801,086730,270,626700,957,0003,999,0002,297,856
4Nov 6, 2024 18:45801,422733,091,948703,251,0002,000,0002,461,696
5Nov 6, 2024 18:45804,161737,233,602704,664,0002,998,0002,289,664
6Nov 6, 2024 18:45805,017740,265,981705,414,0003,001,0002,469,888
7Nov 6, 2024 18:45805,268736,375,931704,639,0003,997,0002,514,944
8Nov 6, 2024 18:45805,459737,167,027705,805,0002,999,0002,465,792
9Nov 6, 2024 18:45806,574737,178,401705,787,0003,998,0002,289,664