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 22, 2024 11:34zielajzielajScore: 4,173Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 22, 2024 11:334,11918,372,4212,417,0001,208,0002,457,600
2Dec 22, 2024 11:344,14726,000,5432,433,0001,216,0002,453,504
3Dec 22, 2024 11:334,17020,529,6762,447,0001,223,0002,457,600
4Dec 22, 2024 11:334,17316,869,5692,448,0001,224,0002,457,600
5Dec 22, 2024 11:344,17723,362,9912,451,0001,225,0002,453,504
6Dec 22, 2024 11:344,20521,060,4942,467,0001,233,0002,461,696