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:34Dan StolyarovDan StolyarovScore: 3,539,581Success
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:343,515,2473,126,283,7353,089,420,0003,997,0002,285,568
2Nov 6, 2024 18:343,539,5813,141,630,6793,111,833,0002,998,0002,449,408
3Nov 6, 2024 18:343,541,7183,142,214,9743,112,714,0003,998,0002,285,568