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 listDec 28, 2024 15:52zielajzielajScore: 4,285Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2024 15:524,14522,736,8892,432,0001,216,0002,273,280
2Dec 28, 2024 15:524,28518,953,3812,514,0001,257,0002,457,600
3Dec 28, 2024 15:524,33622,087,5142,544,0001,272,0002,531,328