1 /* @(#) $Id: ./src/shared/math_op.c, 2011/09/08 dcid Exp $
4 /* Copyright (C) 2009 Trend Micro Inc.
7 * This program is a free software; you can redistribute it
8 * and/or modify it under the terms of the GNU General Public
9 * License (version 2) as published by the FSF - Free Software
12 * License details at the LICENSE file included with OSSEC or
13 * online at: http://www.ossec.net/en/licensing.html
21 * Get the first available prime after the provided value.
24 int os_getprime(int val)
29 /* Value can't be even */
38 /* We just need to check odd numbers up until half
39 * the size of the provided value.