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:52Dan StolyarovDan StolyarovScore: 805,036Success
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:52802,895735,160,097702,551,0003,997,0002,281,472
2Nov 6, 2024 18:52805,036739,449,677704,436,0003,996,0002,457,600
3Nov 6, 2024 18:52806,802739,497,227705,987,0003,999,0002,281,472