Skip to content

Instantly share code, notes, and snippets.

@maurelian
Created July 7, 2018 17:08
Show Gist options
  • Save maurelian/02904ae729fb11213cde20ba05a202e6 to your computer and use it in GitHub Desktop.
Save maurelian/02904ae729fb11213cde20ba05a202e6 to your computer and use it in GitHub Desktop.
pragma experimental SMTChecker;
// pragma solidity ^0.4.20;
contract Primes {
function prime(uint a, uint b) public pure {
require(1 < a && a < 500);
require(1 < b && b < 25000);
assert(a * b != 23447);
}
function factor(uint a, uint b) public pure {
require(1 < a && a < 500);
require(1 < b && b < 25000);
assert(a * b != 23449);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment