Check a number set for a nested prime number of any length up to 10,968,163,441.

enter number to be checked

hide help help

Enter any integer to check for prime.
ie: 2,231
Or enter the haystack (float or int) and the needle length (int) separated by a space.
ei: 3.14159265358979323846264338327950288419716939937510582097494459230781640628620899862803482534211706798214808651328230 10This would be useful for solving the famous google billboard math problem.
Related link: 2,000,000 digits of e
this page's shortlink: http://lnfx.co/

Code Repository :: Prime Number Check lib

This code is available for public use. You may copy, distribute, and eat this code as you wish. However, the license remains in effect for the life of the software.

Pretense for download and use "[Lf] Libraries":

You may not use this code in a commercial setting without prior consent from [Lf].

You may not misrepresent yourself as the author of this code.

You may make changes to this code, but must make the changes available under this license.

/*** Prime number check** php 5*** LICENSE: Use of this library is governed by the Creative Commons License Attribution 2.5.* You can check it out at: http://creativecommons.org/licenses/by/2.5/legalcode** - You may copy, distribute, and eat this code as you wish. You must give me credit for* writing it. You may not misrepresent yourself as the author of this code.* - You may not use this code in a commercial setting without prior consent from me.* - If you make changes to this code, you must make the changes available under a license like* this one.** @category Prime number check* @author R. Fritz Washabaugh <general@lionflux.com>* @copyright 2011 LionFlux - R. Fritz Washabaugh* @license http://creativecommons.org/licenses/by/2.5/legalcode CC 2.5* @link http://www.lionflux.com/code/do/prime***/

// get the prime from the form or get varif( isset( $_REQUEST['num'] ) ){

/**** SLFX CACHE API* version 1.1* date 2017-06-01** How to use this* Place this code block as close to the top as possible.* Anything before this will be processed everytime.* Anything after will be cached.** Exit the current script, and switch to cache**/$type = 'page_public';$path = implode('/', $this->paths );$uid = (int) getConfObj('uid');$is_admin = $this->user->getProperty('admin');