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 01:27zielajzielajScore: 14,550Success
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 01:2611,32258,196,0035,978,0003,985,0002,314,240
2Dec 14, 2024 01:2612,49863,493,7506,999,0003,999,0002,310,144
3Dec 14, 2024 01:2713,94063,185,9947,156,0005,111,0002,433,024
4Dec 14, 2024 01:2714,55077,808,1727,469,0005,335,0002,314,240
5Dec 14, 2024 01:2614,76461,633,3955,996,0006,996,0002,310,144
6Dec 14, 2024 01:2715,87084,373,0056,983,0006,983,0002,269,184