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:26Dan StolyarovDan StolyarovScore: 3,265,482Success
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:263,258,5172,890,317,8042,864,496,0002,999,0002,457,600
2Nov 13, 2024 09:263,265,4822,896,545,7552,869,626,0003,998,0002,461,696
3Nov 13, 2024 09:263,268,1492,901,197,0292,872,973,0002,998,0002,285,568