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 listAug 11, 2023 09:05parsersmailparsersmailScore: 12,531,157Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 11, 2023 09:0512,530,75411,089,213,66911,027,063,13102,236,416
2Aug 11, 2023 09:0512,531,15711,084,544,84211,027,418,53702,236,416
3Aug 11, 2023 09:0512,686,57411,228,224,75811,164,185,21602,224,128