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 listNov 13, 2024 07:43E SequeiraE SequeiraScore: 2,177,541Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 13, 2024 07:432,170,8021,946,836,6151,908,307,0001,999,0002,273,280
2Nov 13, 2024 07:432,177,5411,941,811,8341,914,237,0001,999,0002,277,376
3Nov 13, 2024 07:432,183,7381,944,844,5551,921,689,00002,281,472