semvec/pypi-packages huggingface dataset:
physDBD 0.1.1
Physics-based modeling of reaction networks with TensorFlow
Requires Python: >=3.7

# Physics-based dynamic PCA for modeling stochastic reaction networks with TensorFlow

This is the source repo. for the `physDBD` Python package. It allows the creation of physics-based machine learning models in `TensorFlow` for modeling stochastic reaction networks.

## Quickstart

1. Install:
    ```
    pip install physDBD
    ```

2. See the [example notebook in the GitHub repo.](https://github.com/smrfeld/phys_dbd).

3. Read the [documentation](https://smrfeld.github.io/phys_dbd).

## Further information

See the project's [GitHub page](https://github.com/smrfeld/phys_dbd).
1-is-Prime 0.1.0
Number One is Prime
Requires Python: >=0.1

# 1
## Number One is Prime

Prime Numbers have Prime Property.  
Prime Property is number One Property of indivisibility.  
Number One is Prime.  
Prime meaning is indivisible.

```python
from random import randint
from time import sleep
from math import sqrt

def isPrime(n):
    ''' 
    Prime Numbers have Prime Property.
    Prime Property is number One Property of indivisibility.
    Number One is Prime.
    Prime meaning is indivisible.
    '''
    if n <= 0 or type(n) != type(1): 
        raise Exception("Please, only positive integers!")
        return -1
    if n in [1, 2, 3, 5, 7]: return [1, n]
    elif n % 10 in [0, 2, 4, 5, 6, 8]: return 0
    a = int(sqrt(n))
    for i in range(0, a+1, 10):
        for j in [1, 3, 7, 9]:
            if (i+j) > 1 and n % (i+j) == 0: return 0
    return [1, n]

if __name__ == '__main__':

    tsec = 0.3
    while not 0:
        try:
            p = randint(1, 10)
            n = randint(0, pow(10, p))
            print('{:>15} : {}'.format(n, isPrime(n)))
            sleep(tsec)
        except Exception as e:
            print(e)
        else:
            pass
        finally:
            pass

```

Example:

```
             64 : 0
        2246368 : 0
       53907619 : [1, 53907619]
           7181 : 0
Please, only positive integers!
        3608876 : 0
             56 : 0
            661 : [1, 661]
        3762422 : 0
      938508245 : 0
           9420 : 0
         789615 : 0
        9757627 : 0
         850268 : 0
              9 : 0
          84214 : 0
       65810855 : 0
       24980391 : 0
         689990 : 0
            537 : 0
         429676 : 0
     9824596086 : 0
              2 : [1, 2]
          37867 : 0
      644470317 : 0
     2102644197 : 0
             36 : 0
          77648 : 0
              1 : [1, 1]
       35871409 : 0
             65 : 0
              7 : [1, 7]
              6 : 0
      396807092 : 0
          37544 : 0
     5389893251 : 0
           4728 : 0
         436658 : 0
            252 : 0
       92750986 : 0
       54503585 : 0
            452 : 0
         164357 : [1, 164357]
              5 : [1, 5]
         743268 : 0
        6612362 : 0
         308058 : 0
        9686013 : 0
         106628 : 0
              1 : [1, 1]
      692382629 : 0
      937227937 : [1, 937227937]
       10309843 : [1, 10309843]
       38392795 : 0
           4079 : [1, 4079]
         931912 : 0

 
```