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 16, 2024 23:06MatthiasMatthiasScore: 4,583,532Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 16, 2024 23:064,560,8054,042,244,5762,385,519,0001,627,989,0002,289,664
2Dec 16, 2024 23:064,583,5324,061,746,8692,315,144,0001,718,364,0002,281,472
3Dec 16, 2024 23:064,603,9174,085,922,3152,387,496,0001,663,951,0002,269,184