PrimeChecker contract. Identical bytecode to 0x66d796e7 -- smallestfactor(uint256) returns the smallest prime factor, or n if prime. Deployed Aug 7, 2015 by the
Key Facts
Source Verified
154 bytes. Identical bytecode to PrimeChecker 0x66d796e7. soljson v0.1.1, optimizer OFF. smallestfactor(uint256) returns first factor or n if prime. Same deployer (0x6B4971F5) also deployed PrimeChecker on Aug 7 2015.
Heuristic Analysis
The following characteristics were detected through bytecode analysis and may not be accurate.
Frontier Era
The initial release of Ethereum. A bare-bones implementation for technical users.
Bytecode Overview
Verified Source Available
Source verified through compiler archaeology and exact bytecode matching.
View Verification ProofShow source code (Solidity)
contract PrimeChecker {
function smallestfactor(uint256 n) returns (uint256) {
for (uint256 i = 2; i * i <= n; i++) {
if (n % i == 0) return i;
}
return n;
}
}External Links
Related contracts
PrimeChecker
Same deployerOne of the earliest smart contracts on Ethereum, deployed August 7, 2015 (block 48,790). A pure function that finds the smallest prime factor of any number.
0x66d796...5bf320August 7, 2015PrimeChecker
Same deployerPrimeChecker contract. Identical bytecode to 0x66d796e7 -- smallestfactor(uint256) returns the smallest prime factor, or n if prime. Deployed Aug 7, 2015 by the
0x7b2d5c...164661August 7, 2015