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 31, 2024 21:38zielajzielajScore: 3,601Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 31, 2024 21:383,49220,036,2631,024,0002,049,0002,465,792
2Dec 31, 2024 21:383,49922,385,1681,026,0002,053,0002,281,472
3Dec 31, 2024 21:383,50120,246,2161,027,0002,054,0002,461,696
4Dec 31, 2024 21:383,50124,289,3801,027,0002,054,0002,461,696
5Dec 31, 2024 21:383,60118,254,9112,113,0001,056,0002,273,280
6Dec 31, 2024 21:383,66820,723,2291,076,0002,152,0002,297,856
7Dec 31, 2024 21:383,67220,673,6531,077,0002,154,0002,273,280
8Dec 31, 2024 21:383,67520,275,0171,078,0002,156,0002,461,696
9Dec 31, 2024 21:383,71318,301,2471,089,0002,178,0002,461,696