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:27Dan StolyarovDan StolyarovScore: 3,121,338Success
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:273,111,1262,766,372,2692,733,793,0003,998,0002,420,736
2Nov 13, 2024 09:273,121,3382,774,484,6362,744,778,0001,999,0002,281,472
3Nov 13, 2024 09:273,152,0552,800,339,7732,769,810,0003,998,0002,281,472