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 29, 2024 15:45zielajzielajScore: 3,669Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 29, 2024 15:453,61722,620,7161,061,0002,122,0002,449,408
2Dec 29, 2024 15:453,66924,813,1601,076,0002,153,0002,293,760
3Dec 29, 2024 15:453,68516,994,8652,162,0001,081,0002,301,952