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 14, 2024 18:55MatthiasMatthiasScore: 11,832,490Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 14, 2024 18:5511,801,20510,438,769,62510,382,066,0002,994,0002,285,568
2Dec 14, 2024 18:5511,832,49010,464,632,46610,409,598,0002,993,0002,494,464
3Dec 14, 2024 18:5511,855,45710,473,257,28610,430,806,0001,996,0002,277,376